Skip to content

Commit

Permalink
Fixed route check
Browse files Browse the repository at this point in the history
  • Loading branch information
itdoginfo committed Apr 10, 2024
1 parent 301da76 commit 8ca4fb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions getdomains-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ if [ "$WG" == true ]; then
fi

# Check route table
ROUTE_TABLE=$(ip route show table vpn | grep -c "default dev wg0 scope link" )
ROUTE_TABLE=$(ip route show table vpn | grep -c "default dev wg0" )
if [ $ROUTE_TABLE -eq 1 ]; then
checkpoint_true "Route table WG"
else
Expand Down Expand Up @@ -166,7 +166,7 @@ if [ "$OVPN" == true ]; then
fi

# Check route table
if ip route show table vpn | grep -q "default dev tun0 scope link"; then
if ip route show table vpn | grep -q "default dev tun0"; then
checkpoint_true "Route table OpenVPN"
else
checkpoint_false "Route table OpenVPN"
Expand All @@ -178,7 +178,7 @@ if opkg list-installed | grep -q sing-box; then
checkpoint_true "Sing-box package"

# Check route table
if ip route show table vpn | grep -q "default dev tun0 scope link"; then
if ip route show table vpn | grep -q "default dev tun0"; then
checkpoint_true "Route table Sing-box"
else
checkpoint_false "Route table Sing-box. Try service network restart. Details: https://cli.co/n7xAbc1"
Expand Down Expand Up @@ -208,7 +208,7 @@ if which tun2socks | grep -q tun2socks; then
checkpoint_true "tun2socks package"

# Check route table
if ip route show table vpn | grep -q "default dev tun0 scope link"; then
if ip route show table vpn | grep -q "default dev tun0"; then
checkpoint_true "Route table tun2socks"
else
checkpoint_false "Route table tun2socks. Try service network restart. Details: https://cli.co/n7xAbc1"
Expand Down

0 comments on commit 8ca4fb0

Please sign in to comment.