Skip to content

panic: Calling Domain() on an IPv4Address. | /common/net/address.go:140 #4944

@xqzr

Description

@xqzr

Windows

echo {"inbounds":[{"port":"0,0-0","protocol":"mixed"}]}|xray
Xray 25.7.26 (Xray, Penetrates Everything.) b6b51c5 (go1.24.5 windows/amd64)
A unified platform for anti-censorship.
2025/07/26 17:39:49.298233 Using config from STDIN
2025/07/26 17:39:49.311552 [Info] infra/conf/serial: Reading config: &{Name:stdin: Format:json}
panic: Calling Domain() on an IPv4Address.

goroutine 1 [running]:
github.com/xtls/xray-core/common/net.ipv4Address.Domain(...)
        github.com/xtls/xray-core/common/net/address.go:140
github.com/xtls/xray-core/transport/internet/tcp.ListenTCP({0x12b6f40, 0x1cd30c0}, {0x12b7448, 0xc00000b294}, 0x0, 0xc0003a82a0, 0xc00028b8d0)
        github.com/xtls/xray-core/transport/internet/tcp/hub.go:46 +0x172
github.com/xtls/xray-core/transport/internet.ListenTCP({0x12b6f40, 0x1cd30c0}, {0x12b7448, 0xc00000b294}, 0x0, 0xc0003a8240?, 0xc00028b8d0)
        github.com/xtls/xray-core/transport/internet/tcp_hub.go:74 +0x255
github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).Start(0xc000397860)
        github.com/xtls/xray-core/app/proxyman/inbound/worker.go:122 +0x76
github.com/xtls/xray-core/app/proxyman/inbound.(*AlwaysOnInboundHandler).Start(0x0?)
        github.com/xtls/xray-core/app/proxyman/inbound/always.go:161 +0x45
github.com/xtls/xray-core/app/proxyman/inbound.(*Manager).Start(0xc0002a7c80)
        github.com/xtls/xray-core/app/proxyman/inbound/inbound.go:121 +0x146
github.com/xtls/xray-core/core.(*Instance).Start(0xc0002c0cb0)
        github.com/xtls/xray-core/core/xray.go:390 +0xd2
main.executeRun(0x1c74d20?, {0xc00028e630?, 0x1c8ac80?, 0x70000000028e620?})
        github.com/xtls/xray-core/main/run.go:90 +0x149
github.com/xtls/xray-core/main/commands/base.Execute()
        github.com/xtls/xray-core/main/commands/base/execute.go:64 +0x5ab
main.main()
        github.com/xtls/xray-core/main/main.go:22 +0x1a5

config.json

{
 "inbounds": [
  {
   "port": "0,0-0",
   "protocol": "mixed"
  }
 ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions