Print details when an unsupported protocol is found

This commit is contained in:
Frank Denis 2020-12-11 12:26:05 +01:00
parent d6d8c37ef6
commit fc785f9f69
1 changed files with 1 additions and 1 deletions

View File

@ -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) {