mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
socketchannel backup support default port
This commit is contained in:
@@ -161,6 +161,9 @@ local function connect_backup(self)
|
|||||||
host, port = addr.host, addr.port
|
host, port = addr.host, addr.port
|
||||||
else
|
else
|
||||||
host = addr
|
host = addr
|
||||||
|
if not addr:find(":", 1, true) then
|
||||||
|
port = self.__port
|
||||||
|
end
|
||||||
end
|
end
|
||||||
skynet.error("socket: connect to backup host", host, port)
|
skynet.error("socket: connect to backup host", host, port)
|
||||||
local fd = socket.open(host, port)
|
local fd = socket.open(host, port)
|
||||||
|
|||||||
Reference in New Issue
Block a user