summaryrefslogtreecommitdiff
path: root/src/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.go')
-rw-r--r--src/state.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state.go b/src/state.go
index 23bc1cd..1eb8ebd 100644
--- a/src/state.go
+++ b/src/state.go
@@ -61,6 +61,10 @@ func (state *VPNState) Deregister() error {
// Close the log file
state.CloseLog()
+ // Write the config
+ state.WriteConfig()
+
+ // Re-initialize the server and FSM
state.Server = &Server{}
state.InitializeFSM()
return nil