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) {