mirror of
https://github.com/haugene/docker-transmission-openvpn.git
synced 2025-08-17 19:57:09 +02:00
Fixed duplicate default route drop causing problems (#1723)
This commit is contained in:
parent
6ce64c4f36
commit
b68db41955
@ -37,8 +37,6 @@ if [ -n "${NS}" ] ; then
|
||||
chmod 644 /etc/resolv.conf
|
||||
fi
|
||||
fi
|
||||
# Remove the original default route to avoid leaks.
|
||||
route del default gw "${route_net_gateway}"
|
||||
fi
|
||||
|
||||
/etc/transmission/start.sh "$@"
|
||||
|
@ -64,7 +64,8 @@ fi
|
||||
|
||||
if [[ "true" = "$DROP_DEFAULT_ROUTE" ]]; then
|
||||
echo "DROPPING DEFAULT ROUTE"
|
||||
ip r del default || exit 1
|
||||
# Remove the original default route to avoid leaks.
|
||||
route del default gw "${route_net_gateway}" || exit 1
|
||||
fi
|
||||
|
||||
if [[ "true" = "$LOG_TO_STDOUT" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user