Skip to content

Commit

Permalink
fix middle.close
Browse files Browse the repository at this point in the history
  • Loading branch information
lqqyt2423 committed Oct 4, 2022
1 parent b2bf917 commit dd68ba2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions proxy/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dd68ba2

Please sign in to comment.