diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-22 09:56:57 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-22 09:56:57 +0200 |
| commit | 04cd26387de8e28da4d23ca92a9e9f045cad1665 (patch) | |
| tree | 8f7f086e6c993d20e08f0d358d40127c8dc01ab5 /src | |
| parent | 08b5cab875f1a84162bb47773bbe72135135b90e (diff) | |
API: Add /disconnect
Diffstat (limited to 'src')
| -rw-r--r-- | src/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -102,3 +102,8 @@ func (server *Server) APIConnectOpenVPN(profile_id string) (string, string, erro expires := header.Get("expires") return string(connectBody), expires, nil } + +// This needs no further return value as it's best effort +func (server *Server) APIDisconnect() { + server.apiAuthenticatedRetry(http.MethodPost, "/disconnect", nil) +} |
