diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 21:50:51 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-02-21 21:50:51 +0300 |
| commit | c31882cb928b51911a1e5c6aa5021f18b5b0b7ec (patch) | |
| tree | c59501f0a25b7ac461a90dab4eb24fd1fd991c62 /web | |
| parent | 81d47f75127d1b72e1ff67593826fb1b459b8682 (diff) | |
bug fix #1595
Diffstat (limited to 'web')
| -rw-r--r-- | web/controller/inbound.go | 4 | ||||
| -rw-r--r-- | web/html/xui/xray_rule_modal.html | 4 | ||||
| -rw-r--r-- | 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 @@ <a-input v-model.trim="ruleModal.rule.source"></a-input> </a-form-item> <a-form-item> - <template slot="label">Source Port + <template slot="label"> <a-tooltip> <template slot="title"> <span>{{ i18n "pages.xray.rules.useComma" }}</span> @@ -174,7 +174,7 @@ this.rule.protocol = rule.protocol; this.rule.attrs = rule.attrs ? Object.entries(rule.attrs) : []; this.rule.outboundTag = rule.outboundTag; - this.rule.balancerTag = rule.balancerTag ? rule.balancerTag : "" + this.rule.balancerTag = rule.balancerTag ? rule.balancerTag : ""; } else { this.rule = { domainMatcher: "", diff --git a/web/service/inbound.go b/web/service/inbound.go index 291c0dee..6a3dac5d 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -312,7 +312,7 @@ func (s *InboundService) UpdateInbound(inbound *model.Inbound) (*model.Inbound, oldInbound.StreamSettings = inbound.StreamSettings oldInbound.Sniffing = inbound.Sniffing if inbound.Listen == "" || inbound.Listen == "0.0.0.0" || inbound.Listen == "::" || inbound.Listen == "::0" { - oldInbound.Tag = fmt.Sprintf("inbound-0.0.0.0:%v", inbound.Port) + oldInbound.Tag = fmt.Sprintf("inbound-%v", inbound.Port) } else { oldInbound.Tag = fmt.Sprintf("inbound-%v:%v", inbound.Listen, inbound.Port) } |
