Skip to content

Commit

Permalink
upstream: change doq port to 853
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 21, 2022
1 parent 4b01458 commit 94f86fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ Runs a DNS-over-HTTPS proxy on `127.0.0.1:443`.
./dnsproxy -l 127.0.0.1 --https-port=443 --tls-crt=example.crt --tls-key=example.key -u 8.8.8.8:53 -p 0
```

Runs a DNS-over-QUIC proxy on `127.0.0.1:8853`.
Runs a DNS-over-QUIC proxy on `127.0.0.1:853`.
```shell
./dnsproxy -l 127.0.0.1 --quic-port=8853 --tls-crt=example.crt --tls-key=example.key -u 8.8.8.8:53 -p 0
./dnsproxy -l 127.0.0.1 --quic-port=853 --tls-crt=example.crt --tls-key=example.key -u 8.8.8.8:53 -p 0
```

Runs a DNSCrypt proxy on `127.0.0.1:443`.
Expand Down
11 changes: 4 additions & 7 deletions upstream/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@ const (
// defaultPortDoT is the default port for DNS-over-TLS.
defaultPortDoT = 853

// defaultPortDoQ is the default port for DNS-over-QUIC.
// defaultPortDoQ is the default port for DNS-over-QUIC. Prior to version
// -10 of the draft experiments were directed to use ports 8853, 784.
//
// Early experiments MAY use port 8853. This port is marked in the IANA
// registry as unassigned. Note that prior to version -02 of this draft,
// experiments were directed to use port 784.
//
// See https://datatracker.ietf.org/doc/html/draft-ietf-dprive-dnsoquic-02#section-10.2.1.
defaultPortDoQ = 8853
// See https://datatracker.ietf.org/doc/html/draft-ietf-dprive-dnsoquic-10#section-10.2.
defaultPortDoQ = 853
)

// AddressToUpstream converts addr to an Upstream instance:
Expand Down

0 comments on commit 94f86fb

Please sign in to comment.