From feb52c57d4d8301ba4b2bce5faab4d65f344ea8f Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Mon, 25 Apr 2022 17:50:28 +0200 Subject: Deregister: Completely empty out the state This is so that the only settings that are saved are in the config --- state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/state.go b/state.go index 6f71cb3..249adc3 100644 --- a/state.go +++ b/state.go @@ -76,8 +76,8 @@ func (state *VPNState) Deregister() error { // Save the config state.Config.Save(&state) - // Empty out fsm - state.FSM = internal.FSM{} + // Empty out the state + state = &VPNState{} return nil } -- cgit v1.2.3