We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f6b998 commit 25771f4Copy full SHA for 25771f4
sabnzbdvpn/openvpn/start.sh
@@ -16,7 +16,7 @@
16
17
#set routing gateway for the container
18
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}}')
+ eval $(/sbin/ip r s 0.0.0.0/0 | awk '{if($5!="tun0"){print "GW="$3"\nINT="$5; exit}}')
20
if [ -n "${GW-}" -a -n "${INT-}" ]; then
21
echo "adding route to local network $LOCAL_NETWORK via $GW dev $INT"
22
/sbin/ip r a "$LOCAL_NETWORK" via "$GW" dev "$INT"
0 commit comments