Add name to errors from v2ray HTTP transports

This commit is contained in:
世界 2024-07-01 23:19:42 +08:00
parent 8a17043502
commit 94707dfcdd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
4 changed files with 4 additions and 4 deletions

View file

@ -104,7 +104,7 @@ func (c *Client) DialContext(ctx context.Context) (net.Conn, error) {
if response.StatusCode != 101 ||
!strings.EqualFold(response.Header.Get("Connection"), "upgrade") ||
!strings.EqualFold(response.Header.Get("Upgrade"), "websocket") {
return nil, E.New("unexpected status: ", response.Status)
return nil, E.New("v2ray-http-upgrade: unexpected status: ", response.Status)
}
if bufReader.Buffered() > 0 {
buffer := buf.NewSize(bufReader.Buffered())