mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-18 05:04:40 +03:00
fix import db and always restart xray
This commit is contained in:
@@ -152,6 +152,8 @@ func (a *ServerController) importDB(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
defer file.Close()
|
||||
// Always restart Xray before return
|
||||
defer a.serverService.RestartXrayService()
|
||||
// Import it
|
||||
err = a.serverService.ImportDB(file)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user