Feature: persistence fakeip (#1662)
This commit is contained in:
@ -67,7 +67,7 @@ func (h *ResolverEnhancer) PatchFrom(o *ResolverEnhancer) {
|
||||
}
|
||||
|
||||
if h.fakePool != nil && o.fakePool != nil {
|
||||
h.fakePool.PatchFrom(o.fakePool)
|
||||
h.fakePool.CloneFrom(o.fakePool)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ func withFakeIP(fakePool *fakeip.Pool) middleware {
|
||||
q := r.Question[0]
|
||||
|
||||
host := strings.TrimRight(q.Name, ".")
|
||||
if fakePool.LookupHost(host) {
|
||||
if fakePool.ShouldSkipped(host) {
|
||||
return next(ctx, r)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user