skip-check: authors

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3650
This commit is contained in:
Xav 2016-10-05 19:13:47 +00:00 committed by Audrius Butkevicius
parent 1e54a3e801
commit 96e8f94833
1 changed files with 2 additions and 1 deletions

View File

@ -326,8 +326,9 @@ func handlePostRequest(w http.ResponseWriter, r *http.Request) {
return
}
ip := net.ParseIP(host)
// The client did not provide an IP address, use the IP address of the client.
if host == "" {
if ip == nil || ip.IsUnspecified() {
uri.Host = net.JoinHostPort(rhost, port)
newRelay.URL = uri.String()
} else if host != rhost {