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

Merge pull request #54 from Tagadda/patch-2

Only get the first interface listed as default from `ip route`
This commit is contained in:
tituspijean 2022-02-20 23:58:23 +01:00 committed by GitHub
commit c8004334d3
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 # dependencies used by the app
pkg_dependencies="$pkg_headers wireguard-dkms wireguard" 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) main_domain=$(cat /etc/yunohost/current_host)