mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
fix: http proxy
This commit is contained in:
parent
a2e9c9952f
commit
fd74e00afe
1 changed files with 4 additions and 0 deletions
4
http.go
4
http.go
|
@ -122,6 +122,10 @@ func (s *HTTPServer) serve(conn net.Conn) error {
|
||||||
}
|
}
|
||||||
defer peer.Close()
|
defer peer.Close()
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
_, _ = io.Copy(conn, peer)
|
||||||
|
}()
|
||||||
|
|
||||||
_, err = io.Copy(peer, conn)
|
_, err = io.Copy(peer, conn)
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue