mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
Update the return values of socket.listen, also return the real port bind to zero (#1638)
This commit is contained in:
@@ -11,8 +11,9 @@ skynet.register_protocol {
|
||||
|
||||
local handler = {}
|
||||
|
||||
function handler.open(source, conf)
|
||||
function handler.open(source, conf, port)
|
||||
watchdog = conf.watchdog or source
|
||||
return port
|
||||
end
|
||||
|
||||
function handler.message(fd, msg, sz)
|
||||
|
||||
Reference in New Issue
Block a user