From ce3ffd33777eda739940bbd84d54039ffb8a5cad Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 23 Feb 2018 16:23:03 +0000 Subject: net.connect: Default to *a pattern if none provided --- net/connect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3