summaryrefslogtreecommitdiff
path: root/internal/openvpn.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/openvpn.go')
-rw-r--r--internal/openvpn.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/openvpn.go b/internal/openvpn.go
index 7c4df18..8f684ba 100644
--- a/internal/openvpn.go
+++ b/internal/openvpn.go
@@ -9,7 +9,11 @@ func OpenVPNGetConfig(server Server) (string, string, error) {
return "", "", &OpenVPNGetConfigError{Err: baseErr}
}
profile_id := base.Profiles.Current
- configOpenVPN, _, configErr := APIConnectOpenVPN(server, profile_id)
+ configOpenVPN, expires, configErr := APIConnectOpenVPN(server, profile_id)
+
+ // Store start and end time
+ base.StartTime = GenerateTimeSeconds()
+ base.EndTime = expires
if configErr != nil {
return "", "", &OpenVPNGetConfigError{Err: configErr}