summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src
diff options
context:
space:
mode:
authorGregory Mullen (grayhatter) <greg@grayhatter.com>2016-11-11 03:10:24 -0800
committerGregory Mullen (grayhatter) <greg@grayhatter.com>2016-11-24 17:38:34 -0800
commitad517eb1df8841db52a45c7ac9ecf5976a290d57 (patch)
tree6e0d82599a6c1b0fd819ecf84e4abc82aa41b02e /other/bootstrap_daemon/src
parent19711d0fd0e2c181c3fe9df692b15f57390420d1 (diff)
add NAT hole punching level to Tox API
Diffstat (limited to 'other/bootstrap_daemon/src')
-rw-r--r--other/bootstrap_daemon/src/tox-bootstrapd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c
index f2816ddf..ce1ac5eb 100644
--- a/other/bootstrap_daemon/src/tox-bootstrapd.c
+++ b/other/bootstrap_daemon/src/tox-bootstrapd.c
@@ -33,6 +33,7 @@
33#include <sys/stat.h> 33#include <sys/stat.h>
34 34
35// toxcore 35// toxcore
36#include "../../../toxcore/tox.h"
36#include "../../../toxcore/LAN_discovery.h" 37#include "../../../toxcore/LAN_discovery.h"
37#include "../../../toxcore/TCP_server.h" 38#include "../../../toxcore/TCP_server.h"
38#include "../../../toxcore/onion_announce.h" 39#include "../../../toxcore/onion_announce.h"
@@ -243,7 +244,7 @@ int main(int argc, char *argv[])
243 } 244 }
244 } 245 }
245 246
246 DHT *dht = new_DHT(NULL, net); 247 DHT *dht = new_DHT(NULL, net, true);
247 248
248 if (dht == NULL) { 249 if (dht == NULL) {
249 write_log(LOG_LEVEL_ERROR, "Couldn't initialize Tox DHT instance. Exiting.\n"); 250 write_log(LOG_LEVEL_ERROR, "Couldn't initialize Tox DHT instance. Exiting.\n");