mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
carddav: rename Discover to DiscoverContextURL
This only performs part of the discovery process.
This commit is contained in:
parent
d033e09835
commit
174622c1eb
@ -17,9 +17,9 @@ import (
|
||||
"github.com/emersion/go-webdav/internal"
|
||||
)
|
||||
|
||||
// Discover performs a DNS-based CardDAV service discovery as described in
|
||||
// RFC 6352 section 11. It returns the URL to the CardDAV server.
|
||||
func Discover(ctx context.Context, domain string) (string, error) {
|
||||
// DiscoverContextURL performs a DNS-based CardDAV service discovery as
|
||||
// described in RFC 6352 section 11. It returns the URL to the CardDAV server.
|
||||
func DiscoverContextURL(ctx context.Context, domain string) (string, error) {
|
||||
var resolver net.Resolver
|
||||
|
||||
// Only lookup carddavs (not carddav), plaintext connections are insecure
|
||||
|
Loading…
Reference in New Issue
Block a user