update time for disconnection

This commit is contained in:
Xavier Henner 2019-07-16 11:42:24 +02:00
parent 53131a7a3b
commit c941d43ca8
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ func (s *OpenVpnMgt) Log(c *vpnSession) error {
log.Println(err) log.Println(err)
} }
} }
c.Time = time.Now().Round(time.Second)
jsonStr, err := json.Marshal(c) jsonStr, err := json.Marshal(c)
if err != nil { if err != nil {
return err return err