diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-02-23 16:23:03 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-02-23 16:23:03 +0000 |
commit | df664e829b5abc8f7f6b07406aa51355a2cc9e79 (patch) | |
tree | 9b309f2686d3632e2d2af9aae56f0fc0cb1010c5 | |
parent | c26b05eaf27e2dc720587c0c8c4e32473acbe5b6 (diff) | |
download | prosody-df664e829b5abc8f7f6b07406aa51355a2cc9e79.tar.gz prosody-df664e829b5abc8f7f6b07406aa51355a2cc9e79.zip |
net.connect: Default to *a pattern if none provided
-rw-r--r-- | net/connect.lua | 2 |
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); |