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
..
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00
2015-11-11 21:20:34 -05:00
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00