mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix(fake-ip): return failed when type is AAAA
This commit is contained in:
parent
9ce34a16cb
commit
2c795b82ec
|
@ -16,7 +16,11 @@ func withFakeIP(fakePool *fakeip.Pool) middleware {
|
|||
return func(next handler) handler {
|
||||
return func(w D.ResponseWriter, r *D.Msg) {
|
||||
q := r.Question[0]
|
||||
if q.Qtype != D.TypeA && q.Qtype != D.TypeAAAA {
|
||||
|
||||
if q.Qtype == D.TypeAAAA {
|
||||
D.HandleFailed(w, r)
|
||||
return
|
||||
} else if q.Qtype != D.TypeA {
|
||||
next(w, r)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user