From 4713f257551c313b3f0d0d18ab0bc4855f2051d9 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 13 Jun 2023 10:05:47 -0700 Subject: [PATCH] propagate ACN status --- templates/lib_template.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/lib_template.go b/templates/lib_template.go index a7cc2b0..9a6188f 100644 --- a/templates/lib_template.go +++ b/templates/lib_template.go @@ -417,14 +417,17 @@ func ResetTor() { currentSettings.CustomSocksPort = settings.CustomSocksPort currentSettings.CustomTorrc = settings.CustomTorrc application.UpdateSettings(currentSettings) - globalACN.ReplaceACN(newAcn) - application.QueryACNVersion() // We need to update settings on reset as buildACN can alter settings, otherwise the next reset will be broken... settings = application.ReadSettings() settingsJson, _ := json.Marshal(settings) application.GetPrimaryBus().Publish(event.NewEvent(UpdateGlobalSettings, map[event.Field]string{event.Data: string(settingsJson)})) - } + } + + // replace ACN regardlesss + globalACN.ReplaceACN(newAcn) + application.QueryACNStatus() + application.QueryACNVersion() log.Infof("Restarted") }() }