summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-15 15:01:07 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-15 15:01:07 +0200
commit4f473a5d10bc1c9c659ffebf632f7d49c61c9a53 (patch)
tree63c58b37ca9970ac2c54fb008aa50f2bea92e0a0 /state.go
parent28ef64c0721e00780a6276cee33af259c7752c39 (diff)
State + Python: Remove Set/Get Identifier
Let clients serialize data to a file themselves
Diffstat (limited to 'state.go')
-rw-r--r--state.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/state.go b/state.go
index da78d19..b8fa046 100644
--- a/state.go
+++ b/state.go
@@ -29,9 +29,6 @@ type VPNState struct {
// Whether to enable debugging
Debug bool `json:"-"`
-
- // Serialized connection identifier
- Identifier string `json:"identifier"`
}
func (state *VPNState) GetSavedServers() string {
@@ -320,14 +317,6 @@ func (state *VPNState) SetProfileID(profileID string) error {
return nil
}
-func (state *VPNState) GetIdentifier() string {
- return state.Identifier
-}
-
-func (state *VPNState) SetIdentifier(identifier string) {
- state.Identifier = identifier
-}
-
func (state *VPNState) SetSearchServer() error {
if !state.FSM.HasTransition(fsm.SEARCH_SERVER) {
return &types.WrappedErrorMessage{Message: "failed to set search server", Err: fsm.WrongStateTransitionError{Got: state.FSM.Current, Want: fsm.CONNECTED}.CustomError()}