diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 4335f82..0dbe173 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -302,7 +302,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { c.cancel() - return nil, err + return s.RoundTrip(req) } defer stream.Close() @@ -318,7 +318,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { c.cancel() - return nil, err + return s.RoundTrip(req) } buf := bufio.NewReader(stream)