v2fly / v2ray-core

A platform for building proxies to bypass network restrictions.
https://v2fly.org
MIT License
28.3k stars 4.53k forks source link

transport/internet/httpupgrade: failed to dial request, httpupgrade via tls #2883

Closed swq8 closed 2 weeks ago

swq8 commented 4 months ago

What version of V2Ray are you using?

Client: v2ray 5.13.0 Server: nginx proxy v2ray 5.12.1

What's your scenario of using V2Ray?

watching github in browsers via Socks/VMess proxy

What problems have you encountered?

It is not available under Linux, but the mobile terminal is normal(iphone/showdowrocket)

What's your expectation?

It can be used normally

Please attach your configuration here

Server configuration:

// Please attach your server configuration here.

Client configuration:

{
    "log": {
        "error": {
            "type": "Console",
            "level": "Debug"
        },
        "access": {
            "type": "Console"
        }
    },
    "outbounds": [
        {
            "protocol": "vmess",
            "settings": {
                "address": "1.2.3.4",
                "port": 443,
                "uuid": "xxxx"
            },
            "streamSettings": {
                "transport": "httpupgrade",
                "transportSettings": {
                    "host": "www.xxx.com",
                    "path": "/chat"
                },
                "security": "tls",
                "securitySettings": {
                    "serverName": "www.xxx.com"
                }
            },
            "mux": {
                "enabled": true
            }
        }
    ],
    "inbounds": [
        {
            "protocol": "socks",
            "settings": {
                "udpEnabled": true,
                "address": "0.0.0.0",
                "packetEncoding": "Packet"
            },
            "port": 1080
        }
    ]
}

Please attach error logs here

Server error log:

// Please attach your server error log here.

Client error log:

V2Ray 5.13.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.21.4 linux/amd64)
A unified platform for anti-censorship.
2024/02/13 14:31:09 [Debug] app/log: Logger started
2024/02/13 14:31:09 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:1081
2024/02/13 14:31:09 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1081
2024/02/13 14:31:09 [Info] transport/internet/udp: listening UDP on 0.0.0.0:1081
2024/02/13 14:31:09 [Warning] V2Ray 5.13.0 started
2024/02/13 14:31:12 [Info] [1693791169] proxy/socks: TCP Connect request to tcp:www.v2ex.com:443
2024/02/13 14:31:12 [Warning] [1693791169] app/dispatcher: default route for tcp:www.v2ex.com:443
2024/02/13 14:31:12 [Info] [1693791169] common/mux: dispatching request to tcp:www.v2ex.com:443
2024/02/13 14:31:12 tcp:10.1.0.1:63412 accepted tcp:www.v2ex.com:443
2024/02/13 14:31:12 [Info] transport/internet/httpupgrade: creating connection to tcp:1.2.3.4:443
2024/02/13 14:31:14 [Info] transport/internet/httpupgrade: creating connection to tcp:1.2.3.4:443
2024/02/13 14:31:15 [Info] transport/internet/httpupgrade: creating connection to tcp:1.2.3.4:443
2024/02/13 14:31:17 [Info] transport/internet/httpupgrade: creating connection to tcp:1.2.3.4:443
2024/02/13 14:31:18 [Info] transport/internet/httpupgrade: creating connection to tcp:1.2.3.4:443
2024/02/13 14:31:21 [Warning] failed to handler mux client connection > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/httpupgrade: failed to dial request to tcp:1.2.3.4:443 > malformed HTTP response "\x00\x00\x12\x04\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x80\x00\x04\x00\x01\x00\x00\x00\x05\x00\xff\xff\xff\x00\x00\x04\b\x00\x00\x00\x00\x00\x7f\xff\x00\x00\x00\x00\b\a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"] > common/retry: all retry attempts failed
2024/02/13 14:31:21 [Info] common/mux: failed to read metadata > io: read/write on closed pipe
2024/02/13 14:31:22 [Info] [1693791169] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2024/02/13 14:31:22 [Info] [1693791169] common/mux: failed to fetch all input > io: read/write on closed pipe

Please attach access log here

Other configurations (such as Nginx) and logs here

If V2Ray cannot start up, please attach output from --test command

If V2Ray service is abnormal, please attach journal log here

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days