From 324202a50e440cac36a756d6a2628ebadd2f8d70 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Mon, 21 Mar 2022 17:16:28 +0100 Subject: Update python and add basic config support --- src/state.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/state.go') diff --git a/src/state.go b/src/state.go index 582dd5a..6f06860 100644 --- a/src/state.go +++ b/src/state.go @@ -2,16 +2,18 @@ package eduvpn type VPNState struct { // Info passed by the client - Name string + ConfigDirectory string `json:"-"` + Name string `json:"-"` // The chosen server - Server *Server + Server *Server `json:"server"` } -func Register(state *VPNState, name string, stateCallback func(string, string)) error { +func Register(state *VPNState, name string, directory string, stateCallback func(string, string, string)) error { state.Name = name + state.ConfigDirectory = directory - stateCallback("START", "REGISTER") + stateCallback("START", "REGISTERED", "test data") return nil } -- cgit v1.2.3