summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-12 07:59:17 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-12 07:59:17 +0200
commit5ac096cc7a454f2d57d33fe732fa39540d3b48ad (patch)
tree44f5c815bd0f61d27ae151c6ed31f2166cee652d
parentbb9e00598505c46c48fa3d6eedaee99eb7c219c6 (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.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/state.go b/state.go
index f059a5d..a0a7b2f 100644
--- a/state.go
+++ b/state.go
@@ -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}
}