From 066b3f52437e5ff6c0423b589227df630325bbe0 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Wed, 18 Nov 2009 17:38:25 +0100 Subject: [PATCH] Fix protocol probe. Will detect ADC and TLS handshake - any other request will simply cause the hub to close the connection. Conflicts: src/core/netevent.c src/core/probe.c --- src/core/probe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/probe.c b/src/core/probe.c index dcaa6c7..20988a1 100644 --- a/src/core/probe.c +++ b/src/core/probe.c @@ -91,6 +91,9 @@ static void probe_net_event(struct net_connection* con, int events, void *arg) } else { + LOG_TRACE("Probed TLS %d.%d connection", (int) probe_recvbuf[1], (int) probe_recvbuf[2]); + + net_con_ssl_handshake(con, NET_CON_SSL_MODE_SERVER); return; } #endif