dont allow 172.17.0.0/24 for custom dockernet

This commit is contained in:
m0duspwnens committed 2023-07-24 17:00:20 -04:00
1 parent d71254ad29
commit 2545f9907f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ collect_dns() {
collect_dns_domain() {
whiptail_management_interface_dns_search "searchdomain.local"
while ! valid_fqdn "$MSEARCH"; do
while ! valid_ip4 "$DOCKERNET" || [[ $DOCKERNET =~ "172.17.0." ]]; do
whiptail_invalid_input
whiptail_management_interface_dns_search "$MSEARCH"
done
+1 -1
View File
@@ -330,7 +330,7 @@ whiptail_dockernet_sosnet() {
[ -n "$TESTING" ] && return
DOCKERNET=$(whiptail --title "$whiptail_title" --inputbox \
"\nEnter a /24 size network range for SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes." 11 65 "$1" 3>&1 1>&2 2>&3)
"\nEnter a /24 size network range for SOS containers to use WITHOUT the /24 suffix. This range will be used on ALL nodes. Any range within 172.17.0.0/24 cannot be used." 11 65 "$1" 3>&1 1>&2 2>&3)
local exitstatus=$?
whiptail_check_exitstatus $exitstatus