# HG changeset patch # User Matthew Wild # Date 1579962321 0 # Node ID 0662fe0e2c31f88473574b667fd9af6376814565 # Parent e5ab31845094b068c847d16c76b7cb6b9f92fb43 Backed out changeset 74d66b1be989 (not optimal API) diff -r e5ab31845094 -r 0662fe0e2c31 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Sat Jan 25 14:03:30 2020 +0000 +++ b/plugins/mod_s2s/mod_s2s.lua Sat Jan 25 14:25:21 2020 +0000 @@ -27,7 +27,7 @@ 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 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;