diff options
Diffstat (limited to 'net/connect.lua')
-rw-r--r-- | net/connect.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/connect.lua b/net/connect.lua index dbdd3ce6..4b602be4 100644 --- a/net/connect.lua +++ b/net/connect.lua @@ -42,7 +42,8 @@ local function attempt_connection(p) return; end p:log("debug", "Next target to try is %s:%d", ip, port); - local conn, err = server.addclient(ip, port, pending_connection_listeners, p.options.pattern or "*a", p.options.sslctx, conn_type, extra); + local conn, err = server.addclient(ip, port, pending_connection_listeners, p.options.pattern or "*a", + extra and extra.sslctx or p.options.sslctx, conn_type, extra); if not conn then log("debug", "Connection attempt failed immediately: %s", err); p.last_error = err or "unknown reason"; |