In short, VPN client can sometimes timeout if the keepalive session is too low and the server is slow (for instance on internet cubes). I noticed that the client was trying to do DNS resolution on IP address, which is useless. The idea is to reduce the time needed for the client to connect.
Solution
First check if the VPN remote address is an IP or a domain. If it's a domain, proceed with DNS resolution to obtain the IP address.
PR Status
[x] Code finished and ready to be reviewed/tested
[x] The fix/enhancement were manually tested (if applicable)
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)
Problem
See https://forum.arn-fai.net/t/18-04-2024-ne-pas-mettre-a-jour-vos-vpnclient-ynh/9495/2
In short, VPN client can sometimes timeout if the keepalive session is too low and the server is slow (for instance on internet cubes). I noticed that the client was trying to do DNS resolution on IP address, which is useless. The idea is to reduce the time needed for the client to connect.
Solution
First check if the VPN remote address is an IP or a domain. If it's a domain, proceed with DNS resolution to obtain the IP address.
PR Status
Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)