From 498f1b1d5835ab1ac21886cdf0d1471ac90f75b2 Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sun, 29 Jun 2014 11:06:44 +0100 Subject: [PATCH] Enable LocalDiscovery by default. Recent improvements to the local discovery mechanism makes it cheaper, more network-friendly, and now it cannot make things worse (as opposed to the old mechanism). Thus there is no reason not to enable it by default. --- doc/tinc.conf.5.in | 2 +- src/net_packet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tinc.conf.5.in b/doc/tinc.conf.5.in index f208803a..01c74802 100644 --- a/doc/tinc.conf.5.in +++ b/doc/tinc.conf.5.in @@ -333,7 +333,7 @@ To only listen on a specific port but not on a specific address, use .Li * for the .Ar address . -.It Va LocalDiscovery Li = yes | no Pq no +.It Va LocalDiscovery Li = yes | no Pq yes When enabled, .Nm tinc will try to detect peers that are on the same local network. diff --git a/src/net_packet.c b/src/net_packet.c index 36386b58..6b3183da 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -54,7 +54,7 @@ static char lzo_wrkmem[LZO1X_999_MEM_COMPRESS > LZO1X_1_MEM_COMPRESS ? LZO1X_999 static void send_udppacket(node_t *, vpn_packet_t *); unsigned replaywin = 16; -bool localdiscovery = false; +bool localdiscovery = true; #define MAX_SEQNO 1073741824 -- 2.20.1