1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 15:36:41 -05:00

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

Fix: Append nil to ipIndexMap when appending default local name server
This commit is contained in:
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

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