summaryrefslogtreecommitdiffstats
path: root/remote/modules/redsocks
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-11 16:22:02 +0100
committerSimon Rettberg2013-11-11 16:22:02 +0100
commit85fb9647e2f9ba1ad9d1237b92f0ee4a9a8eb29f (patch)
treeb88c05a819c8e21e26e3167fe470cdb4bdc678e2 /remote/modules/redsocks
parent[rootfs-stage32] Don't check /dev/sd? when fdisk returns nothing, as it won't... (diff)
downloadtm-scripts-85fb9647e2f9ba1ad9d1237b92f0ee4a9a8eb29f.tar.gz
tm-scripts-85fb9647e2f9ba1ad9d1237b92f0ee4a9a8eb29f.tar.xz
tm-scripts-85fb9647e2f9ba1ad9d1237b92f0ee4a9a8eb29f.zip
[redsocks] Refine localnet detection (still not correct :P)
Diffstat (limited to 'remote/modules/redsocks')
-rwxr-xr-xremote/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy b/remote/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy
index 6c39c077..60606148 100755
--- a/remote/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy
+++ b/remote/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy
@@ -17,7 +17,7 @@ if [ "$SLX_PROXY_MODE" == "on" ]; then
elif [ "$SLX_PROXY_MODE" == "auto" -a -n "$SLX_PXE_CLIENT_IP" ]; then
[[ "$SLX_PXE_CLIENT_IP" =~ ^10\. ]] && PROXY=on
[[ "$SLX_PXE_CLIENT_IP" =~ ^192\.168\. ]] && PROXY=on
- [[ "$SLX_PXE_CLIENT_IP" =~ ^172\.[123] ]] && PROXY=on
+ [[ "$SLX_PXE_CLIENT_IP" =~ ^172\.[123][0-9]\. ]] && PROXY=on
fi
[ "$PROXY" == "off" ] && echo "Proxy mode not required." && exit 0