diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-01-25 14:25:21 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-01-25 14:25:21 +0000 |
commit | 6e108728a10ae420bd4c9734af21d12fdaf335bc (patch) | |
tree | b0c49051d377f472477a2245dca1f9dc5688fa6c /plugins | |
parent | b20f96afc1ea09e70fb7ffa04757940096e989bc (diff) | |
download | prosody-6e108728a10ae420bd4c9734af21d12fdaf335bc.tar.gz prosody-6e108728a10ae420bd4c9734af21d12fdaf335bc.zip |
Backed out changeset 74d66b1be989 (not optimal API)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 2d45c750..00d8f5d9 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -27,7 +27,7 @@ local s2s_destroy_session = require "core.s2smanager".destroy_session; local uuid_gen = require "util.uuid".generate; local fire_global_event = prosody.events.fire_event; local runner = require "util.async".runner; -local new_connector = require "net.connect".new_connector; +local connect = require "net.connect".connect; local service = require "net.resolvers.service"; local errors = require "util.error"; local set = require "util.set"; @@ -51,11 +51,6 @@ local listener = {}; local log = module._log; -local connect = new_connector({ - use_ipv4 = module:get_option_boolean("use_ipv4", true); - use_ipv6 = module:get_option_boolean("use_ipv6", true); -}); - module:hook("stats-update", function () local count = 0; local ipv6 = 0; |