# HG changeset patch # User Kim Alvefur # Date 1577134348 -3600 # Node ID c77471c180eaece5e1a734403ef76b3e363b4b28 # Parent 944863f878b904ff003e6bffc015207fcd952709 net.server_event: Silence luacheck warnings diff -r 944863f878b9 -r c77471c180ea net/server_event.lua --- a/net/server_event.lua Mon Dec 23 21:51:52 2019 +0100 +++ b/net/server_event.lua Mon Dec 23 21:52:28 2019 +0100 @@ -692,6 +692,7 @@ 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 @@ 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 )