New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
License validation process relies on a system time instead of a server #413
Comments
Switching timezone to UTC+1 AND restarting AdGuard VPN service does allow me to connect to VPN servers normally. |
@DBotThePony Hi! |
At time of writing the issue report, client was on latest, so unless you fixed the bug in I am unable reproduce it now either way because my (yearly) subscription got updated. EDIT: as i expected, turning clock back (to older subscription, or to time frame between old and new subscriptions) produce no meaningful result, it doesn't connect either way (because of TLS certificate validation error). |
@DBotThePony |
The root cause of issue is basically desktop client checking whenever license has experied using local timezone, while server sends timestamp without timezone. So, for example, if license expires at 05:00 UTC+0, and your PC' local time is 07:00 UTC+7, VPN client will (locally) incorrectly assume license has experied. If you change your PC' clock to 04:00 UTC+7 or 04:00 UTC+0, VPN client will successfully connect.
roboderpy at gmail dot com |
@DBotThePony , сould you please update to the latest nightly and check whether the issue remains |
Please answer the following questions for yourself before submitting an issue.
AdGuard VPN version
2.0.784
Operating mode
VPN
Environment
Issue Details
Steps to reproduce:
Expected Behavior
Being able to connect to VPN until current subscription end
Actual Behavior
Unable to connect, service logs contain next lines:
On machine with UTC+7 timezone (license expires by 5:18:23 UTC+7 or UTC+0?; AdGuard website says license is still valid)
Screenshots
Screenshot 1:
Additional Information
This issue is not present on Adguard for Android, Android app successfully connects to VPN servers despite having the same timezone settings.
This also prevents connecting to VPN even if you made new subscription (different payment method), but the latter not being active due to current still being valid (not expired)
The text was updated successfully, but these errors were encountered: