diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 11:16:54 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-03-11 11:16:54 +0300 |
| commit | 6c73791cab6d430e1c061c8c515280c01d2fe95d (patch) | |
| tree | f564351768676f24eb57b2bca41b111204bf092e /web/controller | |
| parent | f76e3ff94b15f20bab5ef2fe105506a734b406f8 (diff) | |
[xray] add BurstObservatory + minor changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/controller')
| -rw-r--r-- | web/controller/inbound.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/controller/inbound.go b/web/controller/inbound.go index 7ef3245f..511afd64 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -175,7 +175,7 @@ func (a *InboundController) addInboundClient(c *gin.Context) { return } jsonMsg(c, "Client(s) added", nil) - if err == nil && needRestart { + if needRestart { a.xrayService.SetToNeedRestart() } } @@ -196,7 +196,7 @@ func (a *InboundController) delInboundClient(c *gin.Context) { return } jsonMsg(c, "Client deleted", nil) - if err == nil && needRestart { + if needRestart { a.xrayService.SetToNeedRestart() } } @@ -219,7 +219,7 @@ func (a *InboundController) updateInboundClient(c *gin.Context) { return } jsonMsg(c, "Client updated", nil) - if err == nil && needRestart { + if needRestart { a.xrayService.SetToNeedRestart() } } @@ -240,7 +240,7 @@ func (a *InboundController) resetClientTraffic(c *gin.Context) { return } jsonMsg(c, "traffic reseted", nil) - if err == nil && needRestart { + if needRestart { a.xrayService.SetToNeedRestart() } } |
