Fix Tor Reset to Update Settings and Avoid Contention on datadir #63

Merged
dan merged 2 commits from custom_tor_config into trunk 2022-01-19 21:09:04 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 5e4e3d4083 - Show all commits

2
lib.go
View File

@ -801,7 +801,7 @@ func c_ResetTor() {
func ResetTor() {
log.Infof("Replacing ACN with new Tor...")
settings := utils.ReadGlobalSettings()
log.Infof("Settings on Reset: %v", settings)
globalACN.Close() // we need to close first if dateDir is the same, otherwise buildACN can't launch tor.
globalACN.ReplaceACN(buildACN(*settings, globalTorPath, globalAppDir))