mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
carddav: fix Discover with default HTTPS port
This commit is contained in:
parent
ddf2a85958
commit
4b24edf624
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user