eduvpn / apple

app for iOS and macOS
Other
58 stars 18 forks source link

Fix connected time being incorrect #468

Closed roop closed 2 years ago

roop commented 2 years ago

Resolves #319

Previously, we got the connected date in the app by looking at NEVPNConnection.connectedDate. That value didn't get updated across sleep-wakeups (when the OpenVPN tunnel might get disconnected / reconnected which would reset the data counters). So in this PR, we get the connected date by querying the tunnel extension.