start VPN helper also if only services are running
authorChristian Grothoff <christian@grothoff.org>
Fri, 23 Jun 2017 22:06:42 +0000 (00:06 +0200)
committerChristian Grothoff <christian@grothoff.org>
Fri, 23 Jun 2017 22:06:42 +0000 (00:06 +0200)
src/exit/gnunet-daemon-exit.c

index 2cd3441a1e5bab291885637b445d54b799e25788..c1000db6d87a5540595a4f9f9fcee6f8d987010b 100644 (file)
@@ -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,