From 5998a69ebbb174df4425fec878263d2a5d7cb096 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Mon, 25 Apr 2022 18:28:38 +0200 Subject: Fix: Empty out the state by changing the value to which it points to --- state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'state.go') diff --git a/state.go b/state.go index 249adc3..6b3141b 100644 --- a/state.go +++ b/state.go @@ -77,7 +77,7 @@ func (state *VPNState) Deregister() error { state.Config.Save(&state) // Empty out the state - state = &VPNState{} + *state = VPNState{} return nil } -- cgit v1.2.3