summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 18:28:38 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-25 18:28:38 +0200
commit5998a69ebbb174df4425fec878263d2a5d7cb096 (patch)
treede6dbdab6dd66d80383a81e0fc5d07505b14c9cc
parent9bb5a09ec2b4620652efc306e68442c05d434364 (diff)
Fix: Empty out the state by changing the value to which it points to
-rw-r--r--state.go2
1 files changed, 1 insertions, 1 deletions
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
}