From dd68ba2f532b4cbae045d84857b5143c2928f66f Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Tue, 4 Oct 2022 15:34:41 +0800 Subject: [PATCH] fix middle.close --- proxy/interceptor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/interceptor.go b/proxy/interceptor.go index e2fe0c8..2a8fba8 100644 --- a/proxy/interceptor.go +++ b/proxy/interceptor.go @@ -133,9 +133,8 @@ func (m *middle) start() error { } func (m *middle) close() error { - err := m.server.Close() close(m.listener.doneChan) - return err + return nil } func (m *middle) dial(req *http.Request) (net.Conn, error) {