Fix GlobalConfig update via IPC removing IPCPassword (#2379)

This commit is contained in:
Sebastian Göls
2021-07-23 16:54:20 +02:00
committed by GitHub
parent 8b0052ad73
commit 4b7edf388c
2 changed files with 19 additions and 3 deletions

View File

@@ -121,6 +121,10 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
request.GlobalConfig.Saving = true;
if (!request.GlobalConfig.IsIPCPasswordSet && ASF.GlobalConfig.IsIPCPasswordSet) {
request.GlobalConfig.IPCPassword = ASF.GlobalConfig.IPCPassword;
}
if (!request.GlobalConfig.IsWebProxyPasswordSet && ASF.GlobalConfig.IsWebProxyPasswordSet) {
request.GlobalConfig.WebProxyPassword = ASF.GlobalConfig.WebProxyPassword;
}