From a3153868aa0f2bd96ababb6ee5f1428788afeac8 Mon Sep 17 00:00:00 2001 From: brnl <3243133+brnl@users.noreply.github.com> Date: Fri, 28 Feb 2020 00:40:01 +0100 Subject: [PATCH] Made Split-Tunnel variable name more descriptive Renamed to PUSH_CIDR_BLOCKS to TUNNEL_CIDR_BLOCKS so it is more descriptive of what it does. --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 2d86ff0..03491bb 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -789,8 +789,8 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf esac # Allow split-tunnel via custom CIDR blocks (ie. 192.168.0.0/24) - if [ ${#PUSH_CIDR_BLOCKS[@]} -gt 0 ]; then - for cidr in ${PUSH_CIDR_BLOCKS[@]}; do + if [ ${#TUNNEL_CIDR_BLOCKS[@]} -gt 0 ]; then + for cidr in ${TUNNEL_CIDR_BLOCKS[@]}; do echo "Adding $cidr to routed subnets..."; ROUTE_IP=$(echo $cidr | cut -d"/" -f1) ROUTE_BITS=$(echo $cidr | cut -d"/" -f2)