diff --git a/service/gate.lua b/service/gate.lua index 5fb22801..9fe3a491 100644 --- a/service/gate.lua +++ b/service/gate.lua @@ -31,7 +31,7 @@ end function handler.connect(fd, addr) local c = { fd = fd, - ip = msg, + ip = addr, } connection[fd] = c skynet.send(watchdog, "lua", "socket", "open", fd, addr)