# HG changeset patch # User Matthew Wild # Date 1519402983 0 # Node ID c3f234e4ac2308a9eeb22f5cba71bae22a31f9bf # Parent b6f3b34ecc037965baf1ee104163ebb17476974e net.connect: Default to *a pattern if none provided diff -r b6f3b34ecc03 -r c3f234e4ac23 net/connect.lua --- 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);