fix(openvpn): makeOVPN Missing space

fix issue #1616
Add extra comments
This commit is contained in:
4s3ti 2022-09-04 16:41:57 +02:00
parent e7d06d0545
commit 202c173dd7

View file

@ -476,7 +476,11 @@ for i in {2..254}; do
-exec grep -q "${NET_REDUCED}.${i}" {} +; then -exec grep -q "${NET_REDUCED}.${i}" {} +; then
COUNT="${i}" COUNT="${i}"
echo -n "ifconfig-push ${NET_REDUCED}.${i} " >> /etc/openvpn/ccd/"${NAME}" echo -n "ifconfig-push ${NET_REDUCED}.${i} " >> /etc/openvpn/ccd/"${NAME}"
# The space after ${i} is important ------^!
cidrToMask "${subnetClass}" >> /etc/openvpn/ccd/"${NAME}" cidrToMask "${subnetClass}" >> /etc/openvpn/ccd/"${NAME}"
# the end resuld should be a line like:
# ifconfig-push ${NET_REDUCED}.${i} ${subnetClass}
# ifconfig-push 10.205.45.8 255.255.255.0
break break
fi fi
done done