Skip to content

Commit

Permalink
Update nameserver_udp.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rurirei committed Aug 4, 2021
1 parent a379dbd commit 3872172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/dns/nameserver_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ func (s *ClassicNameServer) HandleResponse(ctx context.Context, packet *udp_prot
func (s *ClassicNameServer) updateIP(domain string, newRec record) {
s.Lock()

newError(s.name, " updating IP records for domain:", domain).AtDebug().WriteToLog()
rec, found := s.ips[domain]
if !found {
rec = record{}
Expand All @@ -166,6 +165,7 @@ func (s *ClassicNameServer) updateIP(domain string, newRec record) {
}

if updated && ((newRec.A != nil && len(newRec.A.IP) > 0) || (newRec.AAAA != nil && len(newRec.AAAA.IP) > 0)) {
newError(s.name, " updating IP records for domain:", domain).AtDebug().WriteToLog()
s.ips[domain] = rec
}
if newRec.A != nil {
Expand Down

0 comments on commit 3872172

Please sign in to comment.