syncthing/lib/connections
Jakob Borg 7ebf58f1bc Fix discovery in the absence of listen addresses (fixes #4418)
This makes it OK to not have any listeners working. Specifically,

- We don't complain about an empty listener address
- We don't complain about not having anything to announce to global
  discovery servers
- We don't send local discovery packets when there is nothing to
  announce.

The last point also fixes a thing where the list of addresses for local
discovery was set at startup time and never refreshed.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4517
2017-11-17 09:12:35 +00:00
..
config.go lib/connections, vendor: Change KCP mux to SMUX 2017-03-09 14:03:09 +01:00
connections_test.go lib/connections: Allow negative ACL entries on devices (fixes #4096) 2017-04-13 17:43:29 +00:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
kcp_dial.go lib/connections: Consistent log levels & polish (fixes #4510) 2017-11-14 21:49:36 +00:00
kcp_listen.go lib/connections: Consistent log levels & polish (fixes #4510) 2017-11-14 21:49:36 +00:00
kcp_misc.go lib/connections: Add KCP blacklist period 2017-10-22 13:56:52 +01:00
limiter.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
relay_dial.go lib/connections: Consistent log levels & polish (fixes #4510) 2017-11-14 21:49:36 +00:00
relay_listen.go lib/connections: Consistent log levels & polish (fixes #4510) 2017-11-14 21:49:36 +00:00
service.go Fix discovery in the absence of listen addresses (fixes #4418) 2017-11-17 09:12:35 +00:00
structs.go lib/connections: Parallel dials in the same priority (fixes #4456) 2017-11-15 09:36:33 +00:00
tcp_dial.go lib/connections: Consistent log levels & polish (fixes #4510) 2017-11-14 21:49:36 +00:00
tcp_listen.go lib/connections: Consistent log levels & polish (fixes #4510) 2017-11-14 21:49:36 +00:00
util.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00