aboutsummaryrefslogtreecommitdiff
path: root/nDPId-test.c
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2022-08-15 14:03:28 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-01-17 22:03:03 +0100
commit9f2bf9fdc384966be2528d74cd5a746e4901d0ff (patch)
treee10a370f5241d519680bce118c7a29cde7687918 /nDPId-test.c
parentac4c7390a36b15503cff0ce2ed78ba816c5c38e6 (diff)
Removed TLS proxy capabilities as it complicates the code and makes no sense.add/tls-proxy-support
* nDPIsrvd-cached will do the same job in the future Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'nDPId-test.c')
-rw-r--r--nDPId-test.c9
1 files changed, 6 insertions, 3 deletions
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)
{