From f0a5ff76a67980c43a1351c95c7851c717599090 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 15 Jul 2019 17:44:55 +0800 Subject: [PATCH] Fix(dns): miss response --- dns/middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dns/middleware.go b/dns/middleware.go index edc42c42..b456f855 100644 --- a/dns/middleware.go +++ b/dns/middleware.go @@ -37,6 +37,7 @@ func withFakeIP(cache *cache.Cache, pool *fakeip.Pool) handler { putMsgToCache(cache, ip.String(), msg) setMsgTTL(msg, 1) + w.WriteMsg(msg) return } }