disable LAN/loopback for AC
authorChristian Grothoff <christian@grothoff.org>
Sat, 26 May 2018 18:44:29 +0000 (20:44 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 26 May 2018 18:44:29 +0000 (20:44 +0200)
src/transport/plugin_transport_xt.c

index 9ed0f43c9e52a75cc1f6f430e1ce7d1aac4225cd..21ed19da5a07c921a756324bb1ccb9fa5cbd86e4 100644 (file)
@@ -1450,6 +1450,12 @@ tcp_nat_port_map_callback (void *cls,
   void *arg;
   size_t args;
 
+  if (GNUNET_NAT_AC_LOOPBACK == ac)
+    return;
+  if (GNUNET_NAT_AC_LAN == ac)
+    return;
+  if (GNUNET_NAT_AC_LAN_PRIVATE == ac)
+    return;
   LOG (GNUNET_ERROR_TYPE_INFO,
        "NAT notification to %s address `%s'\n",
        (GNUNET_YES == add_remove) ? "add" : "remove",