From c31882cb928b51911a1e5c6aa5021f18b5b0b7ec Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 21 Feb 2024 22:20:51 +0330 Subject: [PATCH] bug fix #1595 --- web/controller/inbound.go | 4 ++-- web/html/xui/xray_rule_modal.html | 4 ++-- web/service/inbound.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/controller/inbound.go b/web/controller/inbound.go index 86da9813..d613453f 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -86,7 +86,7 @@ func (a *InboundController) addInbound(c *gin.Context) { user := session.GetLoginUser(c) inbound.UserId = user.Id if inbound.Listen == "" || inbound.Listen == "0.0.0.0" || inbound.Listen == "::" || inbound.Listen == "::0" { - inbound.Tag = fmt.Sprintf("inbound-0.0.0.0:%v", inbound.Port) + inbound.Tag = fmt.Sprintf("inbound-%v", inbound.Port) } else { inbound.Tag = fmt.Sprintf("inbound-%v:%v", inbound.Listen, inbound.Port) } @@ -283,7 +283,7 @@ func (a *InboundController) importInbound(c *gin.Context) { inbound.Id = 0 inbound.UserId = user.Id if inbound.Listen == "" || inbound.Listen == "0.0.0.0" || inbound.Listen == "::" || inbound.Listen == "::0" { - inbound.Tag = fmt.Sprintf("inbound-0.0.0.0:%v", inbound.Port) + inbound.Tag = fmt.Sprintf("inbound-%v", inbound.Port) } else { inbound.Tag = fmt.Sprintf("inbound-%v:%v", inbound.Listen, inbound.Port) } diff --git a/web/html/xui/xray_rule_modal.html b/web/html/xui/xray_rule_modal.html index 0c4f23b7..63b78d69 100644 --- a/web/html/xui/xray_rule_modal.html +++ b/web/html/xui/xray_rule_modal.html @@ -20,7 +20,7 @@ -