Skip to content

Commit

Permalink
Merge pull request #153 from Loyalsoldier/minor-fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
kslr authored Sep 2, 2020
2 parents 4da3304 + 323ef03 commit 971c5f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ func New(ctx context.Context, config *Config) (*Server, error) {
log.Fatalln(newError("DNS config error").Base(err))
}
server.clients = append(server.clients, NewDoHLocalNameServer(u, server.clientIP))
} else if address.Family().IsDomain() &&
strings.HasPrefix(address.Domain(), "https://") {
} else if address.Family().IsDomain() && strings.HasPrefix(address.Domain(), "https://") {
// DOH Remote mode
u, err := url.Parse(address.Domain())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion common/strmatcher/strmatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (t Type) New(pattern string) (Matcher, error) {

// IndexMatcher is the interface for matching with a group of matchers.
type IndexMatcher interface {
// Match returns the the index of a matcher that matches the input. It returns empty array if no such matcher exists.
// Match returns the index of a matcher that matches the input. It returns empty array if no such matcher exists.
Match(input string) []uint32
}

Expand Down

0 comments on commit 971c5f2

Please sign in to comment.