mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01:00
Print details when an unsupported protocol is found
This commit is contained in:
parent
d6d8c37ef6
commit
fc785f9f69
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ func fetchServerInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, isNew
|
|||
} else if stamp.Proto == stamps.StampProtoTypeDoH {
|
||||
return fetchDoHServerInfo(proxy, name, stamp, isNew)
|
||||
}
|
||||
return ServerInfo{}, errors.New("Unsupported protocol")
|
||||
return ServerInfo{}, errors.New(fmt.Sprintf("Unsupported protocol for [%s]: [%s]", name, stamp.Proto.String()))
|
||||
}
|
||||
|
||||
func route(proxy *Proxy, name string) (*net.UDPAddr, *net.TCPAddr, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue