diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-23 21:52:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-23 21:52:28 +0100 |
commit | 61273591cdd37e19284a070389ceb7bf040a5a1f (patch) | |
tree | db0157e37d3c5b8acf3c50c62aa7698559b92733 | |
parent | c3d1266e34e25c71692c109ee597160d9d7231f3 (diff) | |
download | prosody-61273591cdd37e19284a070389ceb7bf040a5a1f.tar.gz prosody-61273591cdd37e19284a070389ceb7bf040a5a1f.zip |
net.server_event: Silence luacheck warnings
-rw-r--r-- | net/server_event.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index a8279c42..f7e1f448 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -692,6 +692,7 @@ local function handleserver( server, addr, port, pattern, listener, sslctx, star end end --vdebug("max connection check ok, accepting...") + -- luacheck: ignore 231/err local client, err = server:accept() -- try to accept; TODO: check err while client do if interface._connections >= cfg.MAX_CONNECTIONS then @@ -780,6 +781,7 @@ local function addclient( addr, serverport, listener, pattern, sslctx, typ, extr client:settimeout( 0 ) -- set nonblocking local res, err = client:setpeername( addr, serverport ) -- connect if res or ( err == "timeout" ) then + -- luacheck: ignore 211/port local ip, port = client:getsockname( ) local interface = wrapclient( client, ip, serverport, listener, pattern, sslctx, extra ) debug( "new connection id:", interface.id ) |