Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
louchenyao committed Jan 16, 2020
1 parent 96a432f commit 92e9cfa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions freedns/freedns.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func (s *Server) lookup(req *dns.Msg, net string) (*dns.Msg, string) {
}
}

// dns.Msg.SetReply() always set the Rcode to RcodeSuccess which we do not want
rcode := res.Rcode
res.SetReply(req)
res.Rcode = rcode
return res, upstream
}

0 comments on commit 92e9cfa

Please sign in to comment.