Merge pull request #149 from Vigilans/vigilans/dns-fix-localhost-ipIndexMap

Fix: Append nil to ipIndexMap when appending default local name server
pull/2714/head
Kslr 2020-08-31 13:06:21 +08:00 committed by GitHub
commit f6340dd6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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