Fix(dns): Incorrect variable name
This commit is contained in:
parent
1a21c8ebfd
commit
c1b5e4f561
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ func withFakeIP(cache *cache.Cache, pool *fakeip.Pool) handler {
|
|||
q := r.Question[0]
|
||||
|
||||
cacheItem := cache.Get("fakeip:" + q.String())
|
||||
if cache != nil {
|
||||
if cacheItem != nil {
|
||||
msg := cacheItem.(*D.Msg).Copy()
|
||||
setMsgTTL(msg, 1)
|
||||
msg.SetReply(r)
|
||||
|
|
Loading…
Reference in a new issue