XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
24.69k stars 3.85k forks source link

Xray stop working if testing the VMESS config that miss configured. #2460

Closed M450ud closed 5 months ago

M450ud commented 1 year ago

If you use Xray for vmess config's which the 'Path' parameter is only '/' char the app will stop working and go to panic mode (according to the log). also, the latest version has the bug. the bug cause problem when checking a list; the user must find the buggy config by checking it one by one.

M450ud commented 1 year ago

this is a sample config: vmess://eyJhZGQiOiI4LjIwOC4xMC4xNjkiLCJhaWQiOiIwIiwiaG9zdCI6IiIsImlkIjoiZTM4MzUwYzktNjFjZC00N2MzLTlkNTktMTI5MTI2NzMzMTIxIiwibmV0IjoiZ3JwYyIsInBhdGgiOiIvIiwicG9ydCI6IjIwODMiLCJwcyI6IkJ1Z2d5IENvbmZpZyIsInNjeSI6ImF1dG8iLCJzbmkiOiIiLCJ0bHMiOiJ0bHMiLCJ0eXBlIjoiIiwidiI6IjIifQ==

and log :

panic: runtime error: slice bounds out of range [1:0] goroutine 13 [running]: github.com/xtls/xray-core/transport/internet/grpc.(Config).getServiceName(0xc000433a40) github.com/xtls/xray-core@v1.0.0/transport/internet/grpc/config.go:25 +0x15e github.com/xtls/xray-core/transport/internet/grpc.dialgRPC({0x11a4d60, 0xc000474d80}, {{0x11a61b8?, 0xc00045a7d8?}, 0x2?, 0x0?}, 0xd229a7?) github.com/xtls/xray-core@v1.0.0/transport/internet/grpc/dial.go:65 +0x4d5 github.com/xtls/xray-core/transport/internet/grpc.Dial({0x11a4d60, 0xc000474d80}, {{0x11a61b8, 0xc00045a7d8}, 0x823, 0x2}, 0xc000474d20?) github.com/xtls/xray-core@v1.0.0/transport/internet/grpc/dial.go:27 +0x18d github.com/xtls/xray-core/transport/internet.Dial({0x11a4d60, 0xc000474d80}, {{0x11a61b8?, 0xc00045a7d8?}, 0xa7d8?, 0xc0?}, 0xe?) github.com/xtls/xray-core@v1.0.0/transport/internet/dialer.go:58 +0x1ef github.com/xtls/xray-core/app/proxyman/outbound.(Handler).Dial(0xc000468900, {0x11a4d60?, 0xc000474d80?}, {{0x11a61b8, 0xc00045a7d8}, 0x823, 0x2}) github.com/xtls/xray-core@v1.0.0/app/proxyman/outbound/handler.go:310 +0xad7 github.com/xtls/xray-core/proxy/vmess/outbound.(Handler).Process.func1() github.com/xtls/xray-core@v1.0.0/proxy/vmess/outbound/outbound.go:68 +0xa3 github.com/xtls/xray-core/common/retry.(retryer).On(0xc000395c68, 0xc000395cd0) github.com/xtls/xray-core@v1.0.0/common/retry/retry.go:27 +0xdb github.com/xtls/xray-core/proxy/vmess/outbound.(Handler).Process(0xc0004748d0, {0x11a4d60, 0xc000474d80}, 0xc000413500, {0x119d060, 0xc000468900}) github.com/xtls/xray-core@v1.0.0/proxy/vmess/outbound/outbound.go:66 +0x1ee github.com/xtls/xray-core/app/proxyman/outbound.(Handler).Dispatch(0xc000468900, {0x11a4d60, 0xc000474d80}, 0xc000413500) github.com/xtls/xray-core@v1.0.0/app/proxyman/outbound/handler.go:240 +0x75f github.com/xtls/xray-core/app/dispatcher.(DefaultDispatcher).routedDispatch(0xc00045cf00, {0x11a4d60, 0xc000474d80}, 0xc000413500, {{0x11a6180, 0xc000449eb0}, 0x1bb, 0x2}) github.com/xtls/xray-core@v1.0.0/app/dispatcher/default.go:490 +0xbfe created by github.com/xtls/xray-core/app/dispatcher.(DefaultDispatcher).Dispatch github.com/xtls/xray-core@v1.0.0/app/dispatcher/default.go:302 +0x4ea [Error] Core exited, restarting.

hel1o-wor1d commented 1 year ago

不是vless更好吗 怎么还有用vmess的

M450ud commented 1 year ago

we had to use everything that works.