hiddify / hiddify-app

Multi-platform auto-proxy client, supporting Sing-box, X-ray, TUIC, Hysteria, Reality, Trojan, SSH etc. It’s an open-source, secure and ad-free.
https://hiddify.com
Other
17.14k stars 1.55k forks source link

vmess+ws+tls failed #1362

Open x0chaoren0s opened 1 month ago

x0chaoren0s commented 1 month ago

Search first

What Happened?

a vmess link (with ws and tls) works fine in v2ray and xray: vmess://ew0KICAidiI6ICIyIiwNCiAgInBzIjogIjIwMjQtMTAtMDIgdnBuamFudGl0OiBIb25nIEtvbmcsIEhvbmcgS29uZyIsDQogICJhZGQiOiAiOC4yMTcuMTM1LjQyIiwNCiAgInBvcnQiOiAiMTAwMDEiLA0KICAiaWQiOiAiZjI5OWQxMzYtN2FmMC0xMWVmLTlkMzEtMDAxNjNlMGM0NThkIiwNCiAgImFpZCI6ICIwIiwNCiAgInNjeSI6ICJhdXRvIiwNCiAgIm5ldCI6ICJ3cyIsDQogICJ0eXBlIjogIm5vbmUiLA0KICAiaG9zdCI6ICJjbi5iaW5nLmNvbSIsDQogICJwYXRoIjogIi92cG5qYW50aXQiLA0KICAidGxzIjogInRscyIsDQogICJzbmkiOiAiY24uYmluZy5jb20iLA0KICAiYWxwbiI6ICIiLA0KICAiZnAiOiAiIg0KfQ== its relative xray(v2ray) config:

{
    "tag": "proxy",
    "protocol": "vmess",
    "settings": {
        "vnext": [
            {
                "address": "8.217.135.42",
                "port": 10001,
                "users": [
                    {
                        "id": "f299d136-7af0-11ef-9d31-00163e0c458d",
                        "alterId": 0,
                        "email": "t@t.tt",
                        "security": "auto"
                    }
                ]
            }
        ]
    },
    "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
            "allowInsecure": true,
            "serverName": "cn.bing.com",
            "show": false
        },
        "wsSettings": {
            "path": "/vpnjantit",
            "headers": {
                "Host": "cn.bing.com"
            }
        }
    },
    "mux": {
        "enabled": false,
        "concurrency": -1
    }
}

屏幕截图 2024-09-27 190304

but it failed in hiddify:

{
    "type": "vmess",
    "tag": "2024-10-02 vpnjantit: Hong Kong, Hong Kong § 3",
    "server": "8.217.135.42",
    "server_port": 10001,
    "uuid": "f299d136-7af0-11ef-9d31-00163e0c458d",
    "security": "auto",
    "authenticated_length": true,
    "tls": {
        "enabled": true,
        "server_name": "cn.bing.com",
        "alpn": "http/1.1",
        "utls": {
            "enabled": true,
            "fingerprint": "chrome"
        }
    },
    "packet_encoding": "xudp",
    "transport": {
        "type": "ws",
        "path": "/vpnjantit",
        "headers": {
            "Host": "cn.bing.com"
        },
        "early_data_header_name": "Sec-WebSocket-Protocol"
    }
}

image

Minimal Reproducible Example (MRE)

vmess://ew0KICAidiI6ICIyIiwNCiAgInBzIjogIjIwMjQtMTAtMDIgdnBuamFudGl0OiBIb25nIEtvbmcsIEhvbmcgS29uZyIsDQogICJhZGQiOiAiOC4yMTcuMTM1LjQyIiwNCiAgInBvcnQiOiAiMTAwMDEiLA0KICAiaWQiOiAiZjI5OWQxMzYtN2FmMC0xMWVmLTlkMzEtMDAxNjNlMGM0NThkIiwNCiAgImFpZCI6ICIwIiwNCiAgInNjeSI6ICJhdXRvIiwNCiAgIm5ldCI6ICJ3cyIsDQogICJ0eXBlIjogIm5vbmUiLA0KICAiaG9zdCI6ICJjbi5iaW5nLmNvbSIsDQogICJwYXRoIjogIi92cG5qYW50aXQiLA0KICAidGxzIjogInRscyIsDQogICJzbmkiOiAiY24uYmluZy5jb20iLA0KICAiYWxwbiI6ICIiLA0KICAiZnAiOiAiIg0KfQ==

Expected Behavior

No response

Version

v2.1.1

Platform/OS

Android, Windows

Additional Context

No response

Application Config Options

No response

Relevant log output

No response

Are you willing to submit a PR? If you know how to fix the bug.

titancomputer commented 1 month ago

try v2.5.7 and reply if your problem has been solved or not

x0chaoren0s commented 4 weeks ago

try v2.5.7 and reply if your problem has been solved or not

v2.5.7 failed too. You can try this before publishing:

vmess://eyJhZGQiOiI4LjIxNy4xMzUuNDIiLCJhaWQiOiIwIiwiYWxwbiI6IiIsImZwIjoiIiwiaG9zdCI6ImNuLmJpbmcuY29tIiwiaWQiOiI3YzZiMTIxZS04NTgwLTExZWYtYWNlYi0wMDE2M2UwYzQ1OGQiLCJuZXQiOiJ3cyIsInBhdGgiOiIvdnBuamFudGl0IiwicG9ydCI6IjEwMDAxIiwicHMiOiIyMDI0LTEwLTE1IHZwbmphbnRpdDogSG9uZyBLb25nLCBIb25nIEtvbmciLCJzY3kiOiJhdXRvIiwic25pIjoiY24uYmluZy5jb20iLCJ0bHMiOiJ0bHMiLCJ0eXBlIjoiIiwidiI6IjIifQ==

Screenshot_20241008_222329_app.hiddify.com.jpg Screenshot_20241008_222338_app.hiddify.com.jpg Screenshot_20241008_222401_com.v2ray.ang.jpg

titancomputer commented 2 weeks ago

v2.5.7 failed too.

did you change the URL Test to another one in hiddify config options?

x0chaoren0s commented 6 days ago

v2.5.7 failed too.

did you change the URL Test to another one in hiddify config options?

sorry for my poor english, i dont get your point. i just uninstalled the old hiddify and installed a new v2.5.7 on my android phone, then load my vpnjantit channel and test, and the result was failed.