diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-30 17:52:30 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-30 17:52:30 +0200 |
commit | 1cc5f7fe10b93d6aee713e24e4b5d76a790057f7 (patch) | |
tree | 2272513cbd919ceae32c25328d3db03c3a08118b /plugins/mod_s2s | |
parent | 4f7af62406498ef5a7a1b3bdef18ab714895b78b (diff) | |
download | prosody-1cc5f7fe10b93d6aee713e24e4b5d76a790057f7.tar.gz prosody-1cc5f7fe10b93d6aee713e24e4b5d76a790057f7.zip |
mod_s2s: Silence luacheck warnings in s2sout module
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua index 1c0cd5ed..fd461c12 100644 --- a/plugins/mod_s2s/s2sout.lib.lua +++ b/plugins/mod_s2s/s2sout.lib.lua @@ -8,6 +8,8 @@ --- Module containing all the logic for connecting to a remote server +-- luacheck: ignore 432/err + local portmanager = require "core.portmanager"; local wrapclient = require "net.server".wrapclient; local initialize_filters = require "util.filters".initialize; @@ -16,7 +18,6 @@ local new_ip = require "util.ip".new_ip; local rfc6724_dest = require "util.rfc6724".destination; local socket = require "socket"; local adns = require "net.adns"; -local dns = require "net.dns"; local t_insert, t_sort, ipairs = table.insert, table.sort, ipairs; local local_addresses = require "util.net".local_addresses; @@ -174,6 +175,7 @@ function s2sout.try_connect(host_session, connect_host, connect_port, err) if not err then local IPs = {}; host_session.ip_hosts = IPs; + :make local handle4, handle6; local have_other_result = not(has_ipv4) or not(has_ipv6) or false; |