summaryrefslogtreecommitdiff
path: root/cmd/cli/main.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-26 16:31:45 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-26 16:31:45 +0200
commit39f0e8e26ab37c4b83c1933ba90bae15cd7e04fc (patch)
treea1d496c73fa5d2793105151835cb7e06b82c17b8 /cmd/cli/main.go
parent5608d9a858c2323002305ea1fedb5793a40edc58 (diff)
State: Add a state map to exports instead of a global singleton
Diffstat (limited to 'cmd/cli/main.go')
-rw-r--r--cmd/cli/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index 1406175..c31716f 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -34,7 +34,7 @@ func main() {
urlString = "https://" + urlString
}
- state := eduvpn.GetVPNState()
+ state := &eduvpn.VPNState{}
state.Register("org.eduvpn.app.linux", "configs", logState, true)
config, configErr := state.Connect(urlString)