diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-12 07:59:17 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-12 07:59:17 +0200 |
| commit | 5ac096cc7a454f2d57d33fe732fa39540d3b48ad (patch) | |
| tree | 44f5c815bd0f61d27ae151c6ed31f2166cee652d | |
| parent | bb9e00598505c46c48fa3d6eedaee99eb7c219c6 (diff) | |
State: Do not automatically remove servers on a config error
This is problematic as we do not want to remove already fully added servers!
| -rw-r--r-- | state.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -360,7 +360,6 @@ func (state *VPNState) GetConfigSecureInternet( server, serverErr := state.addSecureInternetHomeServer(orgID) if serverErr != nil { - state.RemoveSecureInternet() state.GoBack() return "", "", &types.WrappedErrorMessage{Message: errorMessage, Err: serverErr} } @@ -421,7 +420,6 @@ func (state *VPNState) GetConfigInstituteAccess(url string, forceTCP bool) (stri server, serverErr := state.addInstituteServer(url) if serverErr != nil { - state.RemoveInstituteAccess(url) state.GoBack() return "", "", &types.WrappedErrorMessage{Message: errorMessage, Err: serverErr} } @@ -435,7 +433,6 @@ func (state *VPNState) GetConfigCustomServer(url string, forceTCP bool) (string, server, serverErr := state.addCustomServer(url) if serverErr != nil { - state.RemoveCustomServer(url) state.GoBack() return "", "", &types.WrappedErrorMessage{Message: errorMessage, Err: serverErr} } |
