Explorar o código

Fix: DoQ local mode compatible with IP destination (#1226)

秋のかえで %!s(int64=4) %!d(string=hai) anos
pai
achega
4f9415d001
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/dns/nameserver_quic.go

+ 1 - 1
app/dns/nameserver_quic.go

@@ -55,7 +55,7 @@ func NewQUICNameServer(url *url.URL) (*QUICNameServer, error) {
 			return nil, err
 		}
 	}
-	dest := net.UDPDestination(net.DomainAddress(url.Hostname()), port)
+	dest := net.UDPDestination(net.ParseAddress(url.Hostname()), port)
 
 	s := &QUICNameServer{
 		ips:         make(map[string]*record),