mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
don't support ip:port
This commit is contained in:
@@ -161,9 +161,7 @@ local function connect_backup(self)
|
||||
host, port = addr.host, addr.port
|
||||
else
|
||||
host = addr
|
||||
if not addr:find(":", 1, true) then
|
||||
port = self.__port
|
||||
end
|
||||
port = self.__port
|
||||
end
|
||||
skynet.error("socket: connect to backup host", host, port)
|
||||
local fd = socket.open(host, port)
|
||||
@@ -198,6 +196,7 @@ local function connect_once(self)
|
||||
if not ok then
|
||||
close_channel_socket(self)
|
||||
if message ~= socket_error then
|
||||
self.__authcoroutine = false
|
||||
skynet.error("socket: auth failed", message)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user