Skip to content

Commit

Permalink
all: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed May 11, 2021
1 parent cdd1de6 commit 02b6d27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and this project adheres to

### Fixed

- Disallowed domains are now case-insesitive ([#3115]).
- Disallowed domains are now case-insensitive ([#3115]).

[#3115]: https://github.com/AdguardTeam/AdGuardHome/issues/3115

Expand Down
4 changes: 2 additions & 2 deletions internal/dnsforward/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func (s *Server) beforeRequestHandler(_ *proxy.Proxy, d *proxy.DNSContext) (bool
}

if len(d.Req.Question) == 1 {
// It's bringed to the lowercase here since this handler is
// called before any other one.
// It's lowercased here since this handler is called before any
// other one.
name := strings.ToLower(d.Req.Question[0].Name)
d.Req.Question[0].Name = name
host := strings.TrimSuffix(name, ".")
Expand Down

0 comments on commit 02b6d27

Please sign in to comment.