Skip to content

Commit

Permalink
Merge pull request v2fly#149 from Vigilans/vigilans/dns-fix-localhost…
Browse files Browse the repository at this point in the history
…-ipIndexMap

Fix: Append nil to ipIndexMap when appending default local name server
  • Loading branch information
kslr authored Aug 31, 2020
2 parents e55fdda + c973b5a commit f6340dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ func New(ctx context.Context, config *Config) (*Server, error) {

if len(server.clients) == 0 {
server.clients = append(server.clients, NewLocalNameServer())
server.ipIndexMap = append(server.ipIndexMap, nil)
}

return server, nil
Expand Down

0 comments on commit f6340dd

Please sign in to comment.