[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: allow to disable IP scan w/
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: allow to disable IP scan w/ HOLE_EXTERNAL; thanks Corvus Corax |
Date: |
Tue, 08 Oct 2019 22:18:11 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 5682fc710 allow to disable IP scan w/ HOLE_EXTERNAL; thanks Corvus
Corax
5682fc710 is described below
commit 5682fc71092a9d64654d83b5c8b45520bd32459b
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Tue Oct 8 22:15:57 2019 +0200
allow to disable IP scan w/ HOLE_EXTERNAL; thanks Corvus Corax
---
src/nat/gnunet-service-nat.c | 15 +++++++++++++--
src/nat/nat.conf.in | 3 +++
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/src/nat/gnunet-service-nat.c b/src/nat/gnunet-service-nat.c
index 694949dde..59a340324 100644
--- a/src/nat/gnunet-service-nat.c
+++ b/src/nat/gnunet-service-nat.c
@@ -335,6 +335,11 @@ static struct StunExternalIP *se_tail;
*/
int enable_upnp;
+/**
+ * Is IP Scanning enabled? #GNUNET_YES if enabled, #GNUNET_NO if disabled,
+ * without, only explicitly specified IPs will be handled (HOLE_EXTERNAL)
+ */
+int enable_ipscan;
/**
* Remove and free an entry from the #lal_head DLL.
@@ -1939,12 +1944,18 @@ run (void *cls,
&dyndns_frequency))
dyndns_frequency = DYNDNS_FREQUENCY;
+ enable_ipscan
+ = GNUNET_CONFIGURATION_get_value_yesno (cfg,
+ "NAT",
+ "ENABLE_IPSCAN");
+
GNUNET_SCHEDULER_add_shutdown (&shutdown_task,
NULL);
stats = GNUNET_STATISTICS_create ("nat",
cfg);
- scan_task = GNUNET_SCHEDULER_add_now (&run_scan,
- NULL);
+ if (GNUNET_YES == enable_ipscan)
+ scan_task = GNUNET_SCHEDULER_add_now (&run_scan,
+ NULL);
}
diff --git a/src/nat/nat.conf.in b/src/nat/nat.conf.in
index a8dbee953..4c068c394 100644
--- a/src/nat/nat.conf.in
+++ b/src/nat/nat.conf.in
@@ -12,6 +12,9 @@ UNIX_MATCH_GID = YES
# Enable UPNP by default?
ENABLE_UPNP = YES
+# Enable scanning for all system IP addresses?
+ENABLE_IPSCAN = YES
+
# Disable IPv6 support
# FIXME: move entirely to transport plugins!
DISABLEV6 = NO
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: allow to disable IP scan w/ HOLE_EXTERNAL; thanks Corvus Corax,
gnunet <=