mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-09-20 09:27:15 +03:00
h1 -> http/1.x
This commit is contained in:
parent
7d851366bb
commit
a8a0677ea9
@ -477,8 +477,10 @@ func fetchDoHServerInfo(proxy *Proxy, name string, stamp stamps.ServerStamp, isN
|
||||
dlog.Criticalf("[%s] may be a lying resolver", name)
|
||||
}
|
||||
protocol := tls.NegotiatedProtocol
|
||||
if len(protocol) == 0 || strings.HasPrefix(protocol, "http/1.") {
|
||||
protocol = "h1"
|
||||
if len(protocol) == 0 {
|
||||
protocol = "http/1.x"
|
||||
}
|
||||
if strings.HasPrefix(protocol, "http/1.") {
|
||||
dlog.Warnf("[%s] does not support HTTP/2", name)
|
||||
}
|
||||
dlog.Infof("[%s] TLS version: %x - Protocol: %v - Cipher suite: %v", name, tls.Version, protocol, tls.CipherSuite)
|
||||
|
Loading…
Reference in New Issue
Block a user