Skip to content

Commit

Permalink
hotfix(provider): fix lint errors of unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 24, 2023
1 parent 5ef315d commit a0b6011
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/provider/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,9 @@ import (
)

const (
defaultDNSPort uint16 = 53
defaultDoTPort uint16 = 853
)

func defaultDNSIPv4AddrPort(bytes [4]byte) netip.AddrPort {
return netip.AddrPortFrom(netip.AddrFrom4(bytes), defaultDNSPort)
}

func defaultDNSIPv6AddrPort(bytes [16]byte) netip.AddrPort {
return netip.AddrPortFrom(netip.AddrFrom16(bytes), defaultDNSPort)
}

func defaultDoTIPv4AddrPort(bytes [4]byte) netip.AddrPort {
return netip.AddrPortFrom(netip.AddrFrom4(bytes), defaultDoTPort)
}
Expand Down

0 comments on commit a0b6011

Please sign in to comment.