mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Revise route query for IP & GW selection from Quad9 to TEST-NET-1
This commit is contained in:
parent
78a6f14742
commit
465d157a19
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@ r=$(( r < 20 ? 20 : r ))
|
||||||
c=$(( c < 70 ? 70 : c ))
|
c=$(( c < 70 ? 70 : c ))
|
||||||
|
|
||||||
# Find IP used to route to outside world
|
# Find IP used to route to outside world
|
||||||
IPv4addr=$(ip route get 9.9.9.9 | awk '{print $7}')
|
IPv4addr=$(ip route get 192.0.2.1 | awk '{print $7}')
|
||||||
IPv4gw=$(ip route get 9.9.9.9 | awk '{print $3}')
|
IPv4gw=$(ip route get 192.0.2.2 | awk '{print $3}')
|
||||||
|
|
||||||
availableInterfaces=$(ip -o link | grep "state UP" | awk '{print $2}' | cut -d':' -f1 | cut -d'@' -f1)
|
availableInterfaces=$(ip -o link | grep "state UP" | awk '{print $2}' | cut -d':' -f1 | cut -d'@' -f1)
|
||||||
dhcpcdFile=/etc/dhcpcd.conf
|
dhcpcdFile=/etc/dhcpcd.conf
|
||||||
|
|
Loading…
Reference in a new issue