summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-03-07 17:34:39 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-05 12:26:13 +0200
commite2bcbc5d7fc8846ed189863ab33f0514f5399365 (patch)
tree3f20ed0c7f0381bda7535e5baa38fe251e98635b /cli
parent56548c511163b4dd22d9a96a2f5ae647f1627a7b (diff)
Begin exporting by wrapping state in a singleton
Diffstat (limited to 'cli')
-rw-r--r--cli/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/main.go b/cli/main.go
index 4d334ac..c3b6258 100644
--- a/cli/main.go
+++ b/cli/main.go
@@ -28,7 +28,9 @@ func main() {
urlString = "https://" + urlString
}
- state := eduvpn.Register("org.eduvpn.app.linux", urlString)
+ state := eduvpn.GetVPNState()
+
+ eduvpn.Register(state, "org.eduvpn.app.linux", urlString)
authURL, err := eduvpn.InitializeOAuth(state)
if err != nil {
log.Fatal(err)