mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
223a835f33
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