File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,11 @@ func (u *SettingService) UpdateProxy(req dto.ProxyUpdate) error {
212212 return err
213213 }
214214 go func () {
215- if err := xpack .Sync (constant .SyncSystemProxy ); err != nil {
215+ syncScope := constant .SyncSystemProxy
216+ if req .WithDockerRestart {
217+ syncScope = constant .SyncSystemProxyWithRestartDocker
218+ }
219+ if err := xpack .Sync (syncScope ); err != nil {
216220 global .LOG .Errorf ("sync proxy to node failed, err: %v" , err )
217221 }
218222 }()
Original file line number Diff line number Diff line change @@ -43,12 +43,13 @@ const (
4343)
4444
4545const (
46- SyncSystemProxy = "SyncSystemProxy"
47- SyncScripts = "SyncScripts"
48- SyncBackupAccounts = "SyncBackupAccounts"
49- SyncAlertSetting = "SyncAlertSetting"
50- SyncCustomApp = "SyncCustomApp"
51- SyncLanguage = "SyncLanguage"
46+ SyncSystemProxy = "SyncSystemProxy"
47+ SyncScripts = "SyncScripts"
48+ SyncBackupAccounts = "SyncBackupAccounts"
49+ SyncAlertSetting = "SyncAlertSetting"
50+ SyncCustomApp = "SyncCustomApp"
51+ SyncLanguage = "SyncLanguage"
52+ SyncSystemProxyWithRestartDocker = "SyncSystemProxyWithRestartDocker"
5253)
5354
5455var WebUrlMap = map [string ]struct {}{
You can’t perform that action at this time.
0 commit comments