Add DeviceStandby option to only enable the device when nodes are reachable.
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 22 Jun 2014 09:48:34 +0000 (10:48 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 22 Jun 2014 14:04:15 +0000 (15:04 +0100)
This adds a new DeviceStandby option; when it is disabled (the default),
behavior is unchanged. If it is enabled, tinc-up will not be called during
tinc initialization, but will instead be deferred until the first node is
reachable, and it will be closed as soon as no nodes are reachable.

This is useful because it means the device won't be set up until we are fairly
sure there is something listening on the other side. This is more user-friendly,
as one can check on the status of the tinc network connection just by checking
the status of the network interface. Besides, it prevents the OS from thinking
it is connected to some network when it is in fact completely isolated.


No differences found