Skip to content

Commit 25771f4

Browse files
author
skippy
committed
Changed default route lookup commands
1 parent 3f6b998 commit 25771f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sabnzbdvpn/openvpn/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#set routing gateway for the container
1818
if [ -n "${LOCAL_NETWORK-}" ]; then
19-
eval $(/sbin/ip r l m 0.0.0.0 | awk '{if($5!="tun0"){print "GW="$3"\nINT="$5; exit}}')
19+
eval $(/sbin/ip r s 0.0.0.0/0 | awk '{if($5!="tun0"){print "GW="$3"\nINT="$5; exit}}')
2020
if [ -n "${GW-}" -a -n "${INT-}" ]; then
2121
echo "adding route to local network $LOCAL_NETWORK via $GW dev $INT"
2222
/sbin/ip r a "$LOCAL_NETWORK" via "$GW" dev "$INT"

0 commit comments

Comments
 (0)