aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-23 21:52:28 +0100
committerKim Alvefur <zash@zash.se>2019-12-23 21:52:28 +0100
commit61273591cdd37e19284a070389ceb7bf040a5a1f (patch)
treedb0157e37d3c5b8acf3c50c62aa7698559b92733 /net
parentc3d1266e34e25c71692c109ee597160d9d7231f3 (diff)
downloadprosody-61273591cdd37e19284a070389ceb7bf040a5a1f.tar.gz
prosody-61273591cdd37e19284a070389ceb7bf040a5a1f.zip
net.server_event: Silence luacheck warnings
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua2
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 )