mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-15 00:51:21 +00:00
save state after adding new identity
This commit is contained in:
@@ -574,7 +574,7 @@ namespace ZitiUpdateService {
|
||||
Logger.Info("Version Checker is running every {0} minutes", upInt.TotalMinutes);
|
||||
|
||||
//on startup - see if the old wintun software was installed and if so ... try to remove it
|
||||
// UninstallOpenZitiWintun.DetectAndUninstallOpenZitiWintun();
|
||||
UninstallOpenZitiWintun.DetectAndUninstallOpenZitiWintun();
|
||||
|
||||
string assemblyVersionStr = Assembly.GetExecutingAssembly().GetName().Version.ToString(); //fetch from ziti?
|
||||
assemblyVersion = new Version(assemblyVersionStr);
|
||||
|
||||
@@ -944,6 +944,7 @@ func newIdentity(newId dto.AddIdentity, out *json.Encoder) {
|
||||
state := rts.state
|
||||
//if successful parse the output and add the config to the identity
|
||||
state.Identities = append(state.Identities, &newId.Id)
|
||||
rts.SaveState()
|
||||
|
||||
//return successful message
|
||||
resp := dto.Response{Message: "success", Code: SUCCESS, Error: "", Payload: Clean(id)}
|
||||
|
||||
Reference in New Issue
Block a user