From c62b46170dfbd969f8cbadc4f3069a45832b804f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 26 May 2018 20:44:29 +0200 Subject: [PATCH] disable LAN/loopback for AC --- src/transport/plugin_transport_xt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/transport/plugin_transport_xt.c b/src/transport/plugin_transport_xt.c index 9ed0f43c9..21ed19da5 100644 --- a/src/transport/plugin_transport_xt.c +++ b/src/transport/plugin_transport_xt.c @@ -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", -- 2.25.1