mirror of https://github.com/v2ray/v2ray-core
Merge pull request #149 from Vigilans/vigilans/dns-fix-localhost-ipIndexMap
Fix: Append nil to ipIndexMap when appending default local name serverpull/2714/head
commit
f6340dd6b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue