syncthing/lib/discover
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
..
cache.go all: Fix comment typos 2017-11-04 07:20:11 +00:00
cache_test.go all: Fix comment typos 2017-11-04 07:20:11 +00:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
discover.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
doc.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
global.go Fix discovery in the absence of listen addresses (fixes #4418) 2017-11-17 09:12:35 +00:00
global_test.go Fix discovery in the absence of listen addresses (fixes #4418) 2017-11-17 09:12:35 +00:00
local.go Fix discovery in the absence of listen addresses (fixes #4418) 2017-11-17 09:12:35 +00:00
local.pb.go all: Add invalid/ignored files to global list, announce to peers (fixes #623) 2017-11-11 19:18:17 +00:00
local.proto lib/protocol: Use DeviceID in protocol messages, with custom marshalling 2016-10-29 21:56:24 +00:00
local_test.go Fix discovery in the absence of listen addresses (fixes #4418) 2017-11-17 09:12:35 +00:00