summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api.go b/src/api.go
index bb7d86b..6f3d847 100644
--- a/src/api.go
+++ b/src/api.go
@@ -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)
+}