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
commitdf664e829b5abc8f7f6b07406aa51355a2cc9e79 (patch)
tree9b309f2686d3632e2d2af9aae56f0fc0cb1010c5 /net/connect.lua
parentc26b05eaf27e2dc720587c0c8c4e32473acbe5b6 (diff)
downloadprosody-df664e829b5abc8f7f6b07406aa51355a2cc9e79.tar.gz
prosody-df664e829b5abc8f7f6b07406aa51355a2cc9e79.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);