Compare commits

..

No commits in common. "80952a9b22427374e89835a23a41a0f7104104db" and "ac9c703c9f58473720b5cfa6a20eaa466e3aa949" have entirely different histories.

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,