瀏覽代碼

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

秋のかえで 4 年之前
父節點
當前提交
4f9415d001
共有 1 個文件被更改,包括 1 次插入1 次删除
  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),