diff options
-rw-r--r-- | net/server_event.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index bcdd6ad1..2f9ab7d9 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -352,6 +352,10 @@ do return self._port end + function interface_mt:serverport() + return self._serverport + end + function interface_mt:ip() return self._ip end @@ -464,6 +468,7 @@ do -- Properties _ip = ip, _port = port, _server = server, _pattern = pattern, + _serverport = (server and server:port() or nil), _sslctx = sslctx; -- parameters _usingssl = false; -- client is using ssl; } |