diff --git a/src/core/probe.c b/src/core/probe.c index 8a480de..591a358 100644 --- a/src/core/probe.c +++ b/src/core/probe.c @@ -46,6 +46,13 @@ static void probe_net_event(struct net_connection* con, int events, void *arg) if (memcmp(probe_recvbuf, "HSUP", 4) == 0) { LOG_TRACE("Probed ADC"); +#ifdef SSL_SUPPORT + if (probe->hub->config->tls_enable && probe->hub->config->tls_require) + { + LOG_TRACE("Not TLS connection - closing connection."); + } + else +#endif if (user_create(probe->hub, probe->connection, &probe->addr)) { probe->connection = 0;