Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8535:b6f3b34ecc03 | 8536:c3f234e4ac23 |
---|---|
26 pending_connections_map[p.conn] = nil; | 26 pending_connections_map[p.conn] = nil; |
27 p.conn = nil; | 27 p.conn = nil; |
28 end | 28 end |
29 p.target_resolver:next(function (conn_type, ip, port, extra) | 29 p.target_resolver:next(function (conn_type, ip, port, extra) |
30 p:log("debug", "Next target to try is %s:%d", ip, port); | 30 p:log("debug", "Next target to try is %s:%d", ip, port); |
31 local conn = assert(server.addclient(ip, port, pending_connection_listeners, p.options.pattern, p.options.sslctx, conn_type, extra)); | 31 local conn = assert(server.addclient(ip, port, pending_connection_listeners, p.options.pattern or "*a", p.options.sslctx, conn_type, extra)); |
32 p.conn = conn; | 32 p.conn = conn; |
33 pending_connections_map[conn] = p; | 33 pending_connections_map[conn] = p; |
34 end); | 34 end); |
35 end | 35 end |
36 | 36 |