YunoHost-Apps / vpnclient_ynh

VPN Client app for YunoHost
GNU Affero General Public License v3.0
41 stars 25 forks source link

Fix check for IPv6 routes #106

Closed hidrarga closed 1 year ago

hidrarga commented 1 year ago

Problem

The function that checks if the IPv6 routes for the VPN server are set is completely broken.

The matching pattern was wrong, as I'm getting something like this with ip -6 route:

default via fe80::abcd:ef01:2345:6789 dev eth0 metric 1024 pref medium

While the check was expecting a trailing / on the IPv6 address. This leads to route never getting deleted when the VPN disconnects

Solution

I fixed the matching pattern and I fixed a typo in the variable name.

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)