syncthing/lib/discover
Cedric Staniewski 223a835f33 lib/discover: Respect the listen address scheme (fixes #3346)
This is a supplement patch to commit a58f69b which only fixed global
discovery. This patch adds the missing parts for the local discovery.

If the listen address scheme is set to tcp4:// or tcp6:// and no
explicit host is specified, an address should not be considered if the
source address does not match this scheme.

This prevents invalid URIs like tcp4://<IPv6 address>:<port> or tcp6://<IPv4
address>:<port> for local discovery.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3380
2016-07-03 20:43:26 +00:00
..
cache_test.go lib/connections: Refactor 2016-05-04 19:38:12 +00:00
cache.go gui: Add addresses for disconnected devices (fixes #3340) 2016-06-26 10:47:23 +00:00
debug.go Implement facility based logger, debugging via REST API 2015-10-03 18:09:53 +02:00
discover.go lib/connections: Refactor 2016-05-04 19:38:12 +00:00
doc.go Fix typos. 2015-11-11 21:20:34 -05:00
global_test.go lib/connections: Refactor 2016-05-04 19:38:12 +00:00
global.go cmd/syncthing: Use ReadAll + json.Unmarshal in places were we care about consuming the reader 2016-05-06 22:01:56 +00:00
local.go lib/discover: Respect the listen address scheme (fixes #3346) 2016-07-03 20:43:26 +00:00
localpackets_xdr.go lib/connections: Refactor 2016-05-04 19:38:12 +00:00
localpackets.go lib/connections: Refactor 2016-05-04 19:38:12 +00:00