Invalidate $IPv4Addr and $IPv4gw when the user claims those settings are not correct

This commit is contained in:
Orazio 2020-01-26 14:47:31 +01:00
parent b12996df37
commit e0ee6cf937

View file

@ -786,6 +786,8 @@ It is also possible to use a DHCP reservation, but if you are going to do that,
else else
# If the settings are wrong, the loop continues # If the settings are wrong, the loop continues
ipSettingsCorrect=False ipSettingsCorrect=False
IPv4AddrValid=False
IPv4gwValid=False
fi fi
done done
# End the if statement for DHCP vs. static # End the if statement for DHCP vs. static
@ -1062,6 +1064,8 @@ installOpenVPN(){
} }
installWireGuard(){ installWireGuard(){
local PIVPN_DEPS
if [ "$PLAT" = "Raspbian" ]; then if [ "$PLAT" = "Raspbian" ]; then
# If this Raspberry Pi uses armv7l we can use the package from the repo # If this Raspberry Pi uses armv7l we can use the package from the repo