From: Etienne Dechamps Date: Sun, 29 Jun 2014 10:06:44 +0000 (+0100) Subject: Enable LocalDiscovery by default. X-Git-Tag: release-1.1pre11~89 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=498f1b1d5835ab1ac21886cdf0d1471ac90f75b2 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. --- 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