diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-08-26 16:02:39 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-08-30 13:49:20 +0200 |
| commit | bfb488195bc3cbc0b86f539e03966cdb22831262 (patch) | |
| tree | d292e8a6c0cfcbf9ae5b305f337fb656ce4219c3 | |
| parent | db1aaea4fa60eec483225235a63fe0b368596efd (diff) | |
Client FSM: Allow renewing in GotConfig
| -rw-r--r-- | client/fsm.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/fsm.go b/client/fsm.go index c8858f9..7f16dce 100644 --- a/client/fsm.go +++ b/client/fsm.go @@ -115,6 +115,7 @@ func newFSM( Transitions: []FSMTransition{ {To: StateMain, Description: "Authorized"}, {To: StateDisconnected, Description: "Cancel, was disconnected"}, + {To: StateGotConfig, Description: "Cancel, was got config"}, }, }, StateGettingConfig: FSMState{ @@ -140,6 +141,7 @@ func newFSM( Transitions: []FSMTransition{ {To: StateGettingConfig, Description: "Get a VPN config again"}, {To: StateConnecting, Description: "VPN is connecting"}, + {To: StateOAuthStarted, Description: "Renew"}, }, }, StateConnecting: FSMState{ |
