all: Remove or convert deprecated API usages (#8459)
This commit is contained in:
@@ -204,7 +204,7 @@ func performHandshakeAndValidation(conn *tls.Conn, uri *url.URL) error {
|
||||
}
|
||||
|
||||
cs := conn.ConnectionState()
|
||||
if !cs.NegotiatedProtocolIsMutual || cs.NegotiatedProtocol != protocol.ProtocolName {
|
||||
if cs.NegotiatedProtocol != protocol.ProtocolName {
|
||||
return errors.New("protocol negotiation error")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user