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:
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
Block a user