diff options
author | Simon Rettberg | 2013-11-11 16:22:02 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-11-11 16:22:02 +0100 |
commit | 85fb9647e2f9ba1ad9d1237b92f0ee4a9a8eb29f (patch) | |
tree | b88c05a819c8e21e26e3167fe470cdb4bdc678e2 /remote/modules/redsocks | |
parent | [rootfs-stage32] Don't check /dev/sd? when fdisk returns nothing, as it won't... (diff) | |
download | tm-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-x | remote/modules/redsocks/data/opt/openslx/scripts/systemd-setup_proxy | 2 |
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 |