Changes from v2ray-core (#93)

This commit is contained in:
Arthur Morgan authored and GitHub committed 2020-12-24 19:45:35 +00:00
1 parent 85619b5a29
commit 6f25191822
14 files changed
+85 -39

No files matched your search

+1
View File
@@ -168,6 +168,7 @@ func setUpHTTPTunnel(ctx context.Context, dest net.Destination, target string, u
rawConn.Close()
return nil, err
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
rawConn.Close()
+1
View File
@@ -293,6 +293,7 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, wri
response.Close = true
result = nil
}
defer response.Body.Close()
} else {
newError("failed to read response from ", request.Host).Base(err).AtWarning().WriteToLog(session.ExportIDToError(ctx))
response = &http.Response{