aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/service_manager.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 04:20:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 08:05:02 +0100
commit5a480deb51f101fdeb9e090bbca316e316a5e569 (patch)
tree1b561b4bede9c6418e5ac6a9f591ddc495190b0f /service/service_manager.go
parentmanager: wire up tunnels changed notifier (diff)
downloadwireguard-windows-5a480deb51f101fdeb9e090bbca316e316a5e569.tar.xz
wireguard-windows-5a480deb51f101fdeb9e090bbca316e316a5e569.zip
manager: wire up config migrator
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/service_manager.go')
-rw-r--r--service/service_manager.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/service_manager.go b/service/service_manager.go
index 6b4a9b90..b903929b 100644
--- a/service/service_manager.go
+++ b/service/service_manager.go
@@ -129,6 +129,7 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest
return
}
+ conf.RegisterStoreChangeCallback(func() { conf.MigrateUnencryptedConfigs() }) // Ignore return value for now, but could be useful later.
conf.RegisterStoreChangeCallback(IPCServerNotifyTunnelsChange)
procs := make(map[uint32]*os.Process)