Skip to content

Commit

Permalink
dnsforward: imp naming again
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jun 28, 2022
1 parent 0b0884a commit 0a8e2b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/dnsforward/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (s *Server) processRestrictLocal(ctx *dnsContext) (rc resultCode) {

// Restrict an access to local addresses for external clients. We also
// assume that all the DHCP leases we give are locally-served or at least
// don't need to be inaccessible externally.
// don't need to be accessible externally.
if !s.privateNets.Contains(ip) {
log.Debug("dns: addr %s is not from locally-served network", ip)

Expand Down
4 changes: 2 additions & 2 deletions internal/dnsforward/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func TestServer_ProcessDetermineLocal(t *testing.T) {
}
}

func TestServer_ProcessInternalHosts_localRestriction(t *testing.T) {
func TestServer_ProcessDHCPHosts_localRestriction(t *testing.T) {
knownIP := net.IP{1, 2, 3, 4}

testCases := []struct {
Expand Down Expand Up @@ -318,7 +318,7 @@ func TestServer_ProcessInternalHosts_localRestriction(t *testing.T) {
}
}

func TestServer_ProcessInternalHosts(t *testing.T) {
func TestServer_ProcessDHCPHosts(t *testing.T) {
const (
examplecom = "example.com"
examplelan = "example." + defaultLocalDomainSuffix
Expand Down

0 comments on commit 0a8e2b3

Please sign in to comment.