TUN-5011: Use the region parameter in fallback SRV lookup

This commit is contained in:
Areg Harutyunyan 2021-08-31 22:16:21 -05:00
parent 98c3957d30
commit 533d005159
No known key found for this signature in database
GPG Key ID: 97A3DFFE8E9320B7
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func edgeDiscovery(log *zerolog.Logger, srvService string) ([][]*EdgeAddr, error
return resolvedAddrPerCNAME, nil
}
func lookupSRVWithDOT(string, string, string) (cname string, addrs []*net.SRV, err error) {
func lookupSRVWithDOT(srvService string, srvProto string, srvName string) (cname string, addrs []*net.SRV, err error) {
// Inspiration: https://github.com/artyom/dot/blob/master/dot.go
r := &net.Resolver{
PreferGo: true,