Throne icon indicating copy to clipboard operation
Throne copied to clipboard

VLESS + WS + TLS configs not working

Open sinasaeedi opened this issue 1 year ago • 8 comments

Operating system

Windows

System version

11 (Latest update)

Installation type

zip

Version

1.0.7

Description

Hello there,

VLESS + WS + TLS configs are not working in Throne. I had the same issue from v1.0.6. Configs are generated using both 3X-UI (Xray) and S-UI (Singbox) and are working fine in V2rayN (Xray core) and Shadowrocket, but not working in Throne.

I'm not sure if it's a Singbox related issue or Throne's.

Reproduction

A sample config: vless://058dee1e-XXXX-XXXX-XXXX-4e3bd1377a72@CLOUDFLARE-CLEAN-IP:2087?security=tls&sni=MY.DOMAIN.IR&alpn=h2,http/1.1,h3&allowInsecure=1&fp=firefox&type=ws&path=/api&host=MY.DOMAIN.IR&packetEncoding=xudp&encryption=none#TLS-Config

Logs

URL Test:
INFO[0000] network: updated default interface vEthernet (Lan-External), index 22
INFO[0000] sing-box started (0.66s)
INFO[0000] outbound/vless[proxy]: outbound connection to www.gstatic.com:80
[[VLESS] TLS-Config] test error: Get "http://www.gstatic.com/generate_204": EOF
[[VLESS] TLS-Config] test error: Get "http://www.gstatic.com/generate_204": EOF
URL test finished!

sinasaeedi avatar Oct 23 '25 08:10 sinasaeedi

The VLESS + WS + TLS configurations work fine with Throne version 1.0.7 on my windows 11 and windows 10.

2025/10/24 00:30:30 [restoreSystemDNS] no action needed
sing-box: v1.12.10
Core listening at 127.0.0.1:63058
>>>>>>>> 正在启动配置档 [VLESS] vless_ws_workers
INFO[0000] network: updated default interface Ethernet0, index 11
INFO[0000] inbound/mixed[mixed-in]: tcp server started at 127.0.0.1:2080
INFO[0000] sing-box started (0.33s)
INFO[0000] network: updated default interface Ethernet0, index 11
INFO[0000] sing-box started (0.00s)
INFO[0000] outbound/vless[proxy]: outbound connection to clients3.google.com:443
INFO[0001] outbound/vless[proxy]: outbound connection to clients3.google.com:443
INFO[0001] outbound/vless[proxy]: outbound connection to clients3.google.com:443
INFO[0002] outbound/vless[proxy]: outbound connection to clients3.google.com:443
URL 测试完成!
vless://[email protected]:443?security=tls&fp=chrome&type=ws&path=/path&packetEncoding=xudp&encryption=none#vless_ws_workers

egg1234 avatar Oct 23 '25 19:10 egg1234

Make sure to turn mux off if your server is Xray, sing-box and xray do not use compatible mux protocols.

Mahdi-zarei avatar Oct 23 '25 21:10 Mahdi-zarei

@Mahdi-zarei

Image

Tried Default, On and Off for the TLS config but no luck.

Image

Also tried with h2mux, smux and yamux, but still no luck.

sinasaeedi avatar Oct 24 '25 06:10 sinasaeedi

I tried to change the fingerprint to android and my config worked

MuhammadElhadary avatar Oct 25 '25 15:10 MuhammadElhadary

@MuhammadElhadary yeah it works! Thanks man!

@Mahdi-zarei I tried setting fingerprint on different values and it's only working on "Android". As I mentioned earlier the exact same config is working fine using other clients, like V2rayN (Xray) and Shadowrocket. Maybe it's a bug or something related to Sing-Box core, I'm not sure.

sinasaeedi avatar Oct 26 '25 08:10 sinasaeedi

Your connection link contains "alpn=h2". Websocket only works with http/1.1. Xray and Sing-box treat the configuration differently. Xray-core is indifferent to your set ALPN and always fallbacks to alpn=http/1.1, whereas Sing-Box must be set to correct ALPN in your configuration.

Just get rid of the "h2" part in your ALPN or leave it blank altogether and it should work.

MEM-917 avatar Oct 27 '25 12:10 MEM-917

It seems to be that some configurations work differently on the 2 cores. On throne's end, the config is being correctly parsed and used, so my only advice here is that you try to find out what is causing this, the things that usually tend to break such configs are mux, and as @MEM-917 said, alpn.

Mahdi-zarei avatar Oct 28 '25 03:10 Mahdi-zarei

Thank you to everyone for your input!

I can confirm that the solution works with two key configurations, as suggested by the community:

  • Fingerprint Setting: Following @MuhammadElhadary's suggestion, the solution is functional after setting the fingerprint to 'android'.
  • APLN Configuration: As noted by @MEM-917, the fix is also achieved by either removing h2 from the APLN field or leaving the field blank.

sinasaeedi avatar Oct 29 '25 13:10 sinasaeedi