summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-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
}