From 1fc9e0be99486f056a1b2023c8b0588ec4ac8da7 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 4 Jul 2022 20:38:07 +0800 Subject: [PATCH] fix: close idle connections --- dns/doh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/doh.go b/dns/doh.go index 08d0d172..81af438c 100644 --- a/dns/doh.go +++ b/dns/doh.go @@ -81,7 +81,7 @@ func (dc *dohClient) doRequest(req *http.Request) (msg *D.Msg, err error) { } else { if dc.firstTest.CAS(true, false) { dc.supportH3.Store(true) - _ = dc.transport.CloseIdleConnections + dc.transport.CloseIdleConnections() dc.transport = nil } }