lib/connections: Fix transport type detection for QUIC (fixes #8274) (#9114)

Check remote address
This commit is contained in:
bt90 2023-09-20 11:23:48 +02:00 committed by GitHub
parent 051cbdc713
commit cf46bf0297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ func (c internalConn) Crypto() string {
func (c internalConn) Transport() string {
transport := c.connType.Transport()
ip, err := osutil.IPFromAddr(c.LocalAddr())
ip, err := osutil.IPFromAddr(c.RemoteAddr())
if err != nil {
return transport
}