[xray] add BurstObservatory + minor changes

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei
2024-03-11 11:46:54 +03:30
parent f76e3ff94b
commit 6c73791cab
4 changed files with 19 additions and 18 deletions

View File

@@ -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()
}
}