From c941d43ca8e1fe847ce9a0621403fe72ff0bdd27 Mon Sep 17 00:00:00 2001 From: Xavier Henner Date: Tue, 16 Jul 2019 11:42:24 +0200 Subject: [PATCH] update time for disconnection --- logs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logs.go b/logs.go index 9140cb8..4f31d99 100644 --- a/logs.go +++ b/logs.go @@ -21,6 +21,9 @@ func (s *OpenVpnMgt) Log(c *vpnSession) error { log.Println(err) } } + + c.Time = time.Now().Round(time.Second) + jsonStr, err := json.Marshal(c) if err != nil { return err