Skip to content

Commit

Permalink
chore: remove DNS quic scheme since it not be implemented yet
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Sep 27, 2024
1 parent ab71090 commit 2907df9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions component/dns/upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const (
UpstreamScheme_TCP_UDP UpstreamScheme = "tcp+udp"
upstreamScheme_TCP_UDP_Alias UpstreamScheme = "udp+tcp"
UpstreamScheme_TLS UpstreamScheme = "tls"
UpstreamScheme_QUIC UpstreamScheme = "quic"
UpstreamScheme_HTTPS UpstreamScheme = "https"
upstreamScheme_H3_Alias UpstreamScheme = "http3"
UpstreamScheme_H3 UpstreamScheme = "h3"
Expand Down Expand Up @@ -66,7 +65,7 @@ func ParseRawUpstream(raw *url.URL) (scheme UpstreamScheme, hostname string, por
if __port == "" {
__port = "443"
}
case UpstreamScheme_QUIC, UpstreamScheme_TLS:
case UpstreamScheme_TLS:
__port = raw.Port()
if __port == "" {
__port = "853"
Expand Down Expand Up @@ -135,7 +134,7 @@ func (u *Upstream) SupportedNetworks() (ipversions []consts.IpVersionStr, l4prot
switch u.Scheme {
case UpstreamScheme_TCP, UpstreamScheme_HTTPS, UpstreamScheme_TLS:
l4protos = []consts.L4ProtoStr{consts.L4ProtoStr_TCP}
case UpstreamScheme_UDP, UpstreamScheme_QUIC, UpstreamScheme_H3:
case UpstreamScheme_UDP, UpstreamScheme_H3:
l4protos = []consts.L4ProtoStr{consts.L4ProtoStr_UDP}
case UpstreamScheme_TCP_UDP:
// UDP first.
Expand Down

0 comments on commit 2907df9

Please sign in to comment.