1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Merge pull request #88 from baptabl/testing

Fixing no internet connection
This commit is contained in:
Alexandre Aubin 2021-11-14 18:54:30 +01:00 committed by GitHub
commit 069aee03b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -327,7 +327,7 @@ if [ "$1" != restart ]; then
done
old_internet_device=$(ynh_setting_get hotspot internet_device)
new_internet_device=$(ip route | awk '/default via/ { print $NF; }')
new_internet_device=$(ip route get 1.2.3.4 | awk '{ print $5; }')
# Switch the NAT interface if there is a VPN
ip link show dev tun0 &> /dev/null