From 7ff73348021ab84f2a3447c5c891f6b635a5ba00 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 24 Jun 2017 00:06:42 +0200 Subject: start VPN helper also if only services are running --- src/exit/gnunet-daemon-exit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exit') diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index 2cd3441a1..c1000db6d 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c @@ -3852,7 +3852,8 @@ run (void *cls, /* Cadet handle acquired, now open ports and announce regular expressions matching our exit */ - if ( (GNUNET_YES == ipv4_enabled) && (GNUNET_YES == ipv4_exit) ) + if ( (GNUNET_YES == ipv4_enabled) && + (GNUNET_YES == ipv4_exit) ) { GNUNET_CRYPTO_hash (GNUNET_APPLICATION_PORT_IPV4_GATEWAY, strlen (GNUNET_APPLICATION_PORT_IPV4_GATEWAY), @@ -3931,7 +3932,7 @@ run (void *cls, GNUNET_free (prefixed_regex); } } - if ((ipv4_exit) || (ipv6_exit)) + if ((ipv4_enabled) || (ipv6_enabled)) helper_handle = GNUNET_HELPER_start (GNUNET_NO, "gnunet-helper-exit", exit_argv, -- cgit v1.2.3 From ac3c4187299d8cba8453017fcec1292c00b697ee Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 24 Jun 2017 00:09:51 +0200 Subject: if (1) holds here, remove redundant if --- src/exit/gnunet-daemon-exit.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/exit') diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index c1000db6d..7196a1844 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c @@ -3932,12 +3932,12 @@ run (void *cls, GNUNET_free (prefixed_regex); } } - if ((ipv4_enabled) || (ipv6_enabled)) - helper_handle = GNUNET_HELPER_start (GNUNET_NO, - "gnunet-helper-exit", - exit_argv, - &message_token, - NULL, NULL); + helper_handle = GNUNET_HELPER_start (GNUNET_NO, + "gnunet-helper-exit", + exit_argv, + &message_token, + NULL, + NULL); } -- cgit v1.2.3