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:
parent
64e7dd4dd0
commit
a3153868aa
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue