wizard: offer auto/CIDR list for offsite, default 10.4.0.0/22,auto

This commit is contained in:
jtricerolph 2026-07-01 12:57:59 +00:00
parent a9305ba249
commit 98c795457f

View file

@ -145,10 +145,13 @@ collect_config() {
OFFICE_IP=$(whiptail --title "Hotel Manage — Site Config" \ OFFICE_IP=$(whiptail --title "Hotel Manage — Site Config" \
--inputbox \ --inputbox \
"Office IP / CIDR / DDNS hostname for offsite restriction. "Onsite matcher(s) for offsite restriction — comma-separated, any match = onsite.
Examples: 203.0.113.5 10.4.0.0/22 hotel.dyndns.org Each can be: an IP, a CIDR, a DDNS hostname, or 'auto' (self-detect the site's
Type 'disabled' to allow access from anywhere:" \ public IP — no DDNS service needed). 'disabled' allows access from anywhere.
11 64 "disabled" 3>&1 1>&2 2>&3) || exit 0
Recommended for a dynamic public IP: 10.4.0.0/22,auto
(LAN clients match the CIDR; public-IP/hairpin clients match auto)" \
13 72 "10.4.0.0/22,auto" 3>&1 1>&2 2>&3) || exit 0
ADMIN_EMAIL=$(whiptail --title "Hotel Manage — Admin Account" \ ADMIN_EMAIL=$(whiptail --title "Hotel Manage — Admin Account" \
--inputbox "Admin user email:" 8 52 "" 3>&1 1>&2 2>&3) || exit 0 --inputbox "Admin user email:" 8 52 "" 3>&1 1>&2 2>&3) || exit 0