소스 검색

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

Fix: Append nil to ipIndexMap when appending default local name server
Kslr 5 년 전
부모
커밋
f6340dd6b5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/dns/server.go

+ 1 - 0
app/dns/server.go

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