diff --git a/misc/build.func b/misc/build.func index 72edaa0..58a4c31 100644 --- a/misc/build.func +++ b/misc/build.func @@ -713,14 +713,16 @@ advanced_settings() { if (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then DISABLEIP6="yes" else + IPv6="auto" DISABLEIP6="no" - if IP6=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "IPv6" --inputbox "Enter IPv6 Address (Default SLAAC)" 10 58); then + + if IP6=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Set IPv6" 8 58 --title "Set IPv6" 3>&1 1>&2 2>&3); then IPv6=$IP6 echo -e "${NETWORK}${BOLD}${DGN}IPv6 Address: ${BGN}$IPv6${CL}" - if IP6GW=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Enter IPv6 Gateway" 8 58 --title "IPv6 Gateway" 3>&1 1>&2 2>&3); then + if IP6GW=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Enter ipv6 Gateway" 8 58 --title "Enter ipv6 Gateway" 3>&1 1>&2 2>&3); then if [ -z $IP6GW ]; then - IP6GW="Default" + IPv6GW="" echo -e "${GATEWAY}${BOLD}${DGN}IPv6 Gateway: ${BGN}$IP6GW${CL}" else IPv6GW=",gw6=$IP6GW" @@ -1137,7 +1139,7 @@ build_container() { -unprivileged $CT_TYPE $PW " - else + elif [[ DISABLEIP6 == "no" ]]; then export PCT_OPTIONS=" -features $FEATURES -hostname $HN