mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-27 09:40:10 +00:00
support subnetClass from setupVARs.conf
This commit is contained in:
parent
3c7175a41c
commit
805de5f77f
3 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,6 @@ piholeSetupVars="/etc/pihole/setupVars.conf"
|
|||
dnsmasqConfig="/etc/dnsmasq.d/02-pivpn.conf"
|
||||
|
||||
dhcpcdFile="/etc/dhcpcd.conf"
|
||||
subnetClass="24"
|
||||
debianOvpnUserGroup="openvpn:openvpn"
|
||||
|
||||
######## PKG Vars ########
|
||||
|
@ -1056,6 +1055,11 @@ installPiVPN(){
|
|||
$SUDO mkdir -p /etc/pivpn/
|
||||
askWhichVPN
|
||||
|
||||
# Allow custom subnetClass via unattend setupVARs file. Use default if not provided.
|
||||
if [ -z "$subnetClass" ]; then
|
||||
subnetClass="24"
|
||||
fi
|
||||
|
||||
if [ "$VPN" = "openvpn" ]; then
|
||||
|
||||
pivpnDEV="tun0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue