Enable LocalDiscovery by default.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 29 Jun 2014 10:06:44 +0000 (11:06 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 29 Jun 2014 10:24:36 +0000 (11:24 +0100)
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
src/net_packet.c

index f208803..01c7480 100644 (file)
@@ -333,7 +333,7 @@ To only listen on a specific port but not on a specific address, use
 .Li *
 for the
 .Ar address .
 .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.
 When enabled,
 .Nm tinc
 will try to detect peers that are on the same local network.
index 36386b5..6b3183d 100644 (file)
@@ -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;
 static void send_udppacket(node_t *, vpn_packet_t *);
 
 unsigned replaywin = 16;
-bool localdiscovery = false;
+bool localdiscovery = true;
 
 #define MAX_SEQNO 1073741824
 
 
 #define MAX_SEQNO 1073741824