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)