1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

fix: only one interface from first default route

Fix #53
This commit is contained in:
Tagada 2022-02-12 11:57:54 +01:00 committed by GitHub
parent 10744bbe57
commit ea8871840b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ fi
# dependencies used by the app
pkg_dependencies="$pkg_headers wireguard-dkms wireguard"
interface=$(ip route | awk '/default/ { print $5 }')
interface=$(ip route | awk '/default/ { print $5 }' | head)
main_domain=$(cat /etc/yunohost/current_host)