aboutsummaryrefslogtreecommitdiffstats
path: root/net/connect.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-02-23 16:23:03 +0000
committerMatthew Wild <mwild1@gmail.com>2018-02-23 16:23:03 +0000
commitce3ffd33777eda739940bbd84d54039ffb8a5cad (patch)
tree9b309f2686d3632e2d2af9aae56f0fc0cb1010c5 /net/connect.lua
parentf5cb629ca2c262e4fc2ace30da451da55e49f3d5 (diff)
downloadprosody-ce3ffd33777eda739940bbd84d54039ffb8a5cad.tar.gz
prosody-ce3ffd33777eda739940bbd84d54039ffb8a5cad.zip
net.connect: Default to *a pattern if none provided
Diffstat (limited to 'net/connect.lua')
-rw-r--r--net/connect.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/connect.lua b/net/connect.lua
index dbd09694..675116e2 100644
--- a/net/connect.lua
+++ b/net/connect.lua
@@ -28,7 +28,7 @@ local function attempt_connection(p)
end
p.target_resolver:next(function (conn_type, ip, port, extra)
p:log("debug", "Next target to try is %s:%d", ip, port);
- local conn = assert(server.addclient(ip, port, pending_connection_listeners, p.options.pattern, p.options.sslctx, conn_type, extra));
+ local conn = assert(server.addclient(ip, port, pending_connection_listeners, p.options.pattern or "*a", p.options.sslctx, conn_type, extra));
p.conn = conn;
pending_connections_map[conn] = p;
end);