Skip to content
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

Support IPv6 proxy address #361

Closed
Tai-Zhou opened this issue Aug 9, 2023 · 2 comments
Closed

Support IPv6 proxy address #361

Tai-Zhou opened this issue Aug 9, 2023 · 2 comments

Comments

@Tai-Zhou
Copy link

Tai-Zhou commented Aug 9, 2023

It seems current proxy address validator doesn't support IPv6 address. I've also tried to modify the .wakatime.cfg file, but does not work. The log file shows failed to load API parameters: invalid url \"http://[2606:4700:4700::64]:53\". Must be in format'https://user:pass@host:port' or 'socks5://user:pass@host:port' or 'domain\\\\user:pass.' (I've replaced the real address).

re = new RegExp('^((https?|socks5)://)?([^:@]+(:([^:@])+)?@)?[\\w\\.-]+(:\\d+)?$', 'i');

@Tai-Zhou
Copy link
Author

A workaround:

  1. Add the IPv6 address to the hosts file, followed by a fake domain name.
  2. Replace the address with the fake domain name.

@alanhamlett
Copy link
Member

Fixed in v24.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants