Skip to content

Commit

Permalink
Changed default route lookup commands
Browse files Browse the repository at this point in the history
  • Loading branch information
skippy committed Oct 13, 2019
1 parent 3f6b998 commit 25771f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sabnzbdvpn/openvpn/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

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

0 comments on commit 25771f4

Please sign in to comment.