From 9f2bf9fdc384966be2528d74cd5a746e4901d0ff Mon Sep 17 00:00:00 2001 From: lns Date: Mon, 15 Aug 2022 14:03:28 +0200 Subject: Removed TLS proxy capabilities as it complicates the code and makes no sense. * nDPIsrvd-cached will do the same job in the future Signed-off-by: lns --- nDPId-test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'nDPId-test.c') diff --git a/nDPId-test.c b/nDPId-test.c index 71f2c8cba..b23bdebc0 100644 --- a/nDPId-test.c +++ b/nDPId-test.c @@ -1293,9 +1293,12 @@ int main(int argc, char ** argv) } /* We do not have any sockets, any socket operation must fail! */ - collector_un_sockfd = -1; - distributor_un_sockfd = -1; - distributor_in_sockfd = -1; + sockfds[COLLECTOR_UN] = -1; + sockfds[DISTRIBUTOR_UN] = -1; + sockfds[DISTRIBUTOR_IN] = -1; +#ifdef ENABLE_GNUTLS + sockfds[DISTRIBUTOR_IN_TLS] = -1; +#endif if (setup_remote_descriptors(MAX_REMOTE_DESCRIPTORS) != 0) { -- cgit v1.2.3