Changeset

10622:0662fe0e2c31

Backed out changeset 74d66b1be989 (not optimal API)
author Matthew Wild <mwild1@gmail.com>
date Sat, 25 Jan 2020 14:25:21 +0000
parents 10621:e5ab31845094
children 10623:f51c88baeb8a
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;