aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-26 20:44:29 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-26 20:44:29 +0200
commitc62b46170dfbd969f8cbadc4f3069a45832b804f (patch)
treed3529e573a3c4756ab53a63e01a2cb1fd8739f68
parent65d6d14a16172c3a5128bb6732a3d1c35eeb0425 (diff)
disable LAN/loopback for AC
-rw-r--r--src/transport/plugin_transport_xt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_xt.c b/src/transport/plugin_transport_xt.c
index 9ed0f43c9e..21ed19da5a 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",