disable LAN/loopback for AC
[oweals/gnunet.git] / 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",