If the listen address scheme is set to tcp4:// or tcp6://, it needs to be made sure that the remote address matches this scheme before it is added to the database. This prevents invalid URIs like tcp4://<IPv6 address>:<port> or tcp6://<IPv4 address>:<port>. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3378