mirror of
https://github.com/haugene/docker-transmission-openvpn.git
synced 2025-08-18 12:17:07 +02:00
Fixed duplicate default route drop causing problems (#1723)
This commit is contained in:
parent
6ce64c4f36
commit
b68db41955
@ -18,7 +18,7 @@ if [ "${PEER_DNS}" != "no" ]; then
|
|||||||
fi
|
fi
|
||||||
i=$((${i} + 1))
|
i=$((${i} + 1))
|
||||||
done
|
done
|
||||||
if [ -n "${NS}" ] ; then
|
if [ -n "${NS}" ] ; then
|
||||||
DNS="# Generated by openvpn for interface ${dev}\n"
|
DNS="# Generated by openvpn for interface ${dev}\n"
|
||||||
if [ -n "${SEARCH}" ] ; then
|
if [ -n "${SEARCH}" ] ; then
|
||||||
DNS="${DNS}search ${DOMAIN} ${SEARCH}\n"
|
DNS="${DNS}search ${DOMAIN} ${SEARCH}\n"
|
||||||
@ -37,8 +37,6 @@ if [ -n "${NS}" ] ; then
|
|||||||
chmod 644 /etc/resolv.conf
|
chmod 644 /etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Remove the original default route to avoid leaks.
|
|
||||||
route del default gw "${route_net_gateway}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/etc/transmission/start.sh "$@"
|
/etc/transmission/start.sh "$@"
|
||||||
|
@ -63,8 +63,9 @@ fi
|
|||||||
. /etc/transmission/userSetup.sh
|
. /etc/transmission/userSetup.sh
|
||||||
|
|
||||||
if [[ "true" = "$DROP_DEFAULT_ROUTE" ]]; then
|
if [[ "true" = "$DROP_DEFAULT_ROUTE" ]]; then
|
||||||
echo "DROPPING DEFAULT ROUTE"
|
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
|
fi
|
||||||
|
|
||||||
if [[ "true" = "$LOG_TO_STDOUT" ]]; then
|
if [[ "true" = "$LOG_TO_STDOUT" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user