Software /
code /
prosody
Changeset
10547:c77471c180ea
net.server_event: Silence luacheck warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 23 Dec 2019 21:52:28 +0100 |
parents | 10546:944863f878b9 |
children | 10548:c88f979946c4 |
files | net/server_event.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 )