mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-04 07:03:00 +00:00
Compare commits
No commits in common. "80952a9b22427374e89835a23a41a0f7104104db" and "ac9c703c9f58473720b5cfa6a20eaa466e3aa949" have entirely different histories.
80952a9b22
...
ac9c703c9f
1 changed files with 2 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue