mirror of
https://github.com/kepler155c/opus
synced 2025-11-04 17:43:01 +00:00
protected network services
This commit is contained in:
@@ -67,8 +67,13 @@ Event.addRoutine(function()
|
||||
|
||||
Event.addRoutine(function()
|
||||
print('samba: connection from ' .. socket.dhost)
|
||||
sambaConnection(socket)
|
||||
local s, m = pcall(sambaConnection, socket)
|
||||
print('samba: closing connection to ' .. socket.dhost)
|
||||
socket:close()
|
||||
if not s and m then
|
||||
print('Samba error')
|
||||
_G.printError(m)
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user