Software /
code /
prosody
Diff
net/connect.lua @ 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 |
parent | 8531:601681acea73 |
child | 8546:d66916dc318a |
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);