carddav: add Discover TODO about "path" key in TXT record

This commit is contained in:
Simon Ser 2022-05-25 14:57:05 +02:00
parent 5d845721d8
commit 97e0b10b4f

View File

@ -39,6 +39,7 @@ func Discover(domain string) (string, error) {
return "", fmt.Errorf("carddav: empty target in SRV record")
}
// TODO: perform a TXT lookup, check for a "path" key in the response
u := url.URL{Scheme: "https"}
if addr.Port == 443 {
u.Host = target