Browse Source

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

秋のかえで 4 years ago
parent
commit
4f9415d001
1 changed files with 1 additions and 1 deletions
  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),