Software /
code /
prosody
Changeset
8536:c3f234e4ac23
net.connect: Default to *a pattern if none provided
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 23 Feb 2018 16:23:03 +0000 |
parents | 8535:b6f3b34ecc03 |
children | 8537:d7f31badd359 |
files | net/connect.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/connect.lua Fri Feb 23 16:21:40 2018 +0000 +++ b/net/connect.lua Fri Feb 23 16:23:03 2018 +0000 @@ -28,7 +28,7 @@ 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);