Change the default port of Dns over Quic

This commit is contained in:
simpleandstupid 2022-06-16 17:28:48 +08:00 committed by yuhan6665
parent 37f8654957
commit 950a64e9a4

View file

@ -48,7 +48,7 @@ func NewQUICNameServer(url *url.URL, queryStrategy QueryStrategy) (*QUICNameServ
newError("DNS: created Local DNS-over-QUIC client for ", url.String()).AtInfo().WriteToLog() newError("DNS: created Local DNS-over-QUIC client for ", url.String()).AtInfo().WriteToLog()
var err error var err error
port := net.Port(784) port := net.Port(853)
if url.Port() != "" { if url.Port() != "" {
port, err = net.PortFromString(url.Port()) port, err = net.PortFromString(url.Port())
if err != nil { if err != nil {