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:
commit
069aee03b1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue