use sane default for DNS interception
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jun 2018 22:26:24 +0000 (00:26 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jun 2018 22:27:30 +0000 (00:27 +0200)
src/dns/gnunet-service-dns.c
src/gns/gns.conf.in

index c191f05312a96423b8278787ce7fb61888547f45..6b75fd0f4f412a5656895185388cedf308707360 100644 (file)
@@ -1097,7 +1097,10 @@ run (void *cls,
 
   helper_argv[0] = GNUNET_strdup ("gnunet-dns");
   if (GNUNET_SYSERR ==
-      GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IFNAME", &ifc_name))
+      GNUNET_CONFIGURATION_get_value_string (cfg,
+                                            "dns",
+                                            "IFNAME",
+                                            &ifc_name))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 "No entry 'IFNAME' in configuration!\n");
@@ -1106,7 +1109,9 @@ run (void *cls,
   }
   helper_argv[1] = ifc_name;
   if ( (GNUNET_SYSERR ==
-       GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IPV6ADDR",
+       GNUNET_CONFIGURATION_get_value_string (cfg,
+                                              "dns",
+                                              "IPV6ADDR",
                                               &ipv6addr)) )
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -1116,7 +1121,9 @@ run (void *cls,
   }
   helper_argv[2] = ipv6addr;
   if (GNUNET_SYSERR ==
-      GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IPV6PREFIX",
+      GNUNET_CONFIGURATION_get_value_string (cfg,
+                                            "dns",
+                                            "IPV6PREFIX",
                                              &ipv6prefix))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -1127,7 +1134,9 @@ run (void *cls,
   helper_argv[3] = ipv6prefix;
 
   if (GNUNET_SYSERR ==
-      GNUNET_CONFIGURATION_get_value_string (cfg, "dns", "IPV4ADDR",
+      GNUNET_CONFIGURATION_get_value_string (cfg,
+                                            "dns",
+                                            "IPV4ADDR",
                                              &ipv4addr))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
index f7682cda709e4a50a99a17a16d09c8243983670d..de50d1047fdf343ce85a8e488ee10adc0743b434 100644 (file)
@@ -20,7 +20,7 @@ MAX_PARALLEL_BACKGROUND_QUERIES = 1000
 # we will ask gnunet-service-dns to pass DNS queries to us. Otherwise,
 # we only answer GNS queries via the API (which itself may be
 # called via NSS or other mechanisms).
-INTERCEPT_DNS = YES
+INTERCEPT_DNS = NO
 
 # PREFIX = valgrind --leak-check=full --track-origins=yes