diff --git a/dns/doq.go b/dns/doq.go index 8764ebab..7682a21e 100644 --- a/dns/doq.go +++ b/dns/doq.go @@ -177,7 +177,7 @@ func (dc *quicClient) openSession() (quic.Connection, error) { return nil, fmt.Errorf("quio create packet failed") } - udp = wrapConn.PacketConn + udp = wrapConn } session, err := quic.Dial(udp, &udpAddr, host, tlsConfig, quicConfig)