Compare commits

..

1 commit

Author SHA1 Message Date
Nebulosa
0c86b4a77f
Merge d99453000b into 427b7b67d8 2026-01-09 20:35:47 +03:00

View file

@ -80,12 +80,9 @@ type HistoryOfSeeders struct {
// GenXrayInboundConfig generates an Xray inbound configuration from the Inbound model.
func (i *Inbound) GenXrayInboundConfig() *xray.InboundConfig {
listen := i.Listen
// Default to 0.0.0.0 (all interfaces) when listen is empty
// This ensures proper dual-stack IPv4/IPv6 binding in systems where bindv6only=0
if listen == "" {
listen = "0.0.0.0"
if listen != "" {
listen = fmt.Sprintf("\"%v\"", listen)
}
listen = fmt.Sprintf("\"%v\"", listen)
return &xray.InboundConfig{
Listen: json_util.RawMessage(listen),
Port: i.Port,