carddav: fix Discover with default HTTPS port

This commit is contained in:
Simon Ser 2020-02-19 16:31:03 +01:00
parent ddf2a85958
commit 4b24edf624
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -41,7 +41,7 @@ func Discover(domain string) (string, error) {
u := url.URL{Scheme: "https"}
if addr.Port == 443 {
u.Host = addr.Target
u.Host = target
} else {
u.Host = fmt.Sprintf("%v:%v", target, addr.Port)
}