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.
This commit is contained in:
brnl 2020-02-28 00:40:01 +01:00 committed by GitHub
parent 64e7dd4dd0
commit a3153868aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -789,8 +789,8 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf
esac esac
# Allow split-tunnel via custom CIDR blocks (ie. 192.168.0.0/24) # Allow split-tunnel via custom CIDR blocks (ie. 192.168.0.0/24)
if [ ${#PUSH_CIDR_BLOCKS[@]} -gt 0 ]; then if [ ${#TUNNEL_CIDR_BLOCKS[@]} -gt 0 ]; then
for cidr in ${PUSH_CIDR_BLOCKS[@]}; do for cidr in ${TUNNEL_CIDR_BLOCKS[@]}; do
echo "Adding $cidr to routed subnets..."; echo "Adding $cidr to routed subnets...";
ROUTE_IP=$(echo $cidr | cut -d"/" -f1) ROUTE_IP=$(echo $cidr | cut -d"/" -f1)
ROUTE_BITS=$(echo $cidr | cut -d"/" -f2) ROUTE_BITS=$(echo $cidr | cut -d"/" -f2)