Repository navigation
Closed
Description
Integrity requirements
- I have read all the comments in the issue template and ensured that this issue meet the requirements.
- I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
- I provided the complete config and logs, rather than just providing the truncated parts based on my own judgment.
- I searched issues and did not find any similar issues.
- The problem can be successfully reproduced in the latest Release
Description
Following confing causing xray to crash due to incorrect host name (containing slash).
{
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "1111",
"port": 20118,
"users": [
{
"id": "142dd8b5-0b9e-4018-a961-2370d50cc435",
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "none",
"xhttpSettings": {
"host": "hub.docker.com/?tets",
"mode": "stream-one"
}
},
}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe434ed]
goroutine 19 [running]:
github.com/xtls/xray-core/transport/internet/splithttp.(*Config).FillStreamRequest(0x2875c7c14a80, 0x0, {0x0, 0x0}, {0x2875c7930030?, 0x7f957241fe08?})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/splithttp/config.go:296 +0x4d
github.com/xtls/xray-core/transport/internet/splithttp.(*DefaultDialerClient).OpenStream(0x2875c7922040, {0x16317b8, 0x2875c79160c0}, {0x2875c7930030, 0x20}, {0x0, 0x0}, {0x161c8a0, 0x2875c79201e0}, 0x0)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/splithttp/client.go:63 +0x28e
github.com/xtls/xray-core/transport/internet/splithttp.Dial({0x16317b8, 0x2875c79160c0}, {{0x1631b18, 0x2875c7beeb38}, 0x4e96, 0x2}, 0x2875c7bf4850)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/splithttp/dialer.go:472 +0x10c6
github.com/xtls/xray-core/transport/internet.Dial({0x16317b8, 0x2875c79160c0}, {{0x1631b18?, 0x2875c7beeb38?}, 0xeb38?, 0x2875?}, 0x0?)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/dialer.go:63 +0x168
github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dial(0x2875c7c39200, {0x16317b8, 0x2875c79160c0}, {{0x1631b18, 0x2875c7beeb38}, 0x4e96, 0x2})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/outbound/handler.go:316 +0x971
github.com/xtls/xray-core/proxy/vless/outbound.(*Handler).Process.func2()
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/vless/outbound/outbound.go:194 +0x4c
github.com/xtls/xray-core/common/retry.(*retryer).On(0x2875c78f9720, 0x2875c78f97d0)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/common/retry/retry.go:27 +0xc3
github.com/xtls/xray-core/proxy/vless/outbound.(*Handler).Process(0x2875c7c3e960, {0x16317b8, 0x2875c79160c0}, 0x2875c791c020, {0x162f190, 0x2875c7c39200})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/vless/outbound/outbound.go:192 +0x385
github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dispatch(0x2875c7c39200, {0x16317b8, 0x2875c79160c0}, 0x2875c791c020)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/outbound/handler.go:242 +0x930
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).routedDispatch(0x2875c7c3e780, {0x16317b8, 0x2875c79160c0}, 0x2875c791c020, {{0x1631b88, 0x2875c7912020}, 0x1bb, 0x2})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/dispatcher/default.go:518 +0xaa2
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).DispatchLink(0x2875c7c3e780, {0x16317b8, 0x2875c79160c0}, {{0x1631b88?, 0x2875c7912020?}, 0x3c30?, 0x2875?}, 0x2875c791c020)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/dispatcher/default.go:358 +0x38a
github.com/xtls/xray-core/common/mux.(*Server).DispatchLink(0x2875c7beb730?, {0x16317b8?, 0x2875c79160c0?}, {{0x1631b88?, 0x2875c7912020?}, 0x60?, 0x2875?}, 0x2875c791c020?)
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/common/mux/server.go:64 +0xda
github.com/xtls/xray-core/proxy/socks.(*Server).processTCP(0x2875c7c3af60, {0x16317b8, 0x2875c7a9c0f0}, {0x7f952911f0a0, 0x2875c7a9e000}, {0x16367c0, 0x2875c7beb730}, {0x2875c7aac00c, 0x1, 0x1})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/socks/server.go:163 +0xae9
github.com/xtls/xray-core/proxy/socks.(*Server).Process(0x2875c7c3af60, {0x16317b8, 0x2875c7a9c0f0}, 0x2, {0x7f952911f0a0, 0x2875c7a9e000}, {0x16367c0, 0x2875c7beb730})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/socks/server.go:96 +0x35f
github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).callback(0x2875c7c31400, {0x7f952911f0a0, 0x2875c7a9e000})
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/inbound/worker.go:130 +0x949
created by github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).Start.func1 in goroutine 18
/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/inbound/worker.go:151 +0x7a
Reproduction Method
run xray with config above.
Client config
above
Server config
above
Client log
above
Server log
above
Metadata
Metadata
Assignees
Labels
No labels
Activity
axet commentedon Jun 12, 2026
symbol "@" also crashing xray
bytecategory commentedon Jun 12, 2026
标题拼写错了,carshing应该改成crashing
bytecategory commentedon Jun 12, 2026
@axet https://github.com/XTLS/Xray-core/actions/runs/27422036773/
axet commentedon Jun 13, 2026
Yes. It should work. Thanks.
XHTTP client: Avoid panic when `host` is invalid (XTLS#6316)
XHTTP client: Avoid panic when `host` is invalid (XTLS#6316)
Squashed commit of the following:
XHTTP client: Avoid panic when `host` is invalid (#6316)