mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-06 22:17:37 +00:00
Option to disable IPv6 (#986)
This commit is contained in:
@ -125,6 +125,8 @@ function default_settings() {
|
||||
NET=dhcp
|
||||
echo -e "${DGN}Using Gateway Address: ${BGN}Default${CL}"
|
||||
GATE=""
|
||||
echo -e "${DGN}Disable IPv6: ${BGN}No${CL}"
|
||||
DISABLEIP6="no"
|
||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
|
||||
MTU=""
|
||||
echo -e "${DGN}Using DNS Search Domain: ${BGN}Host${CL}"
|
||||
@ -238,6 +240,13 @@ function advanced_settings() {
|
||||
echo -e "${DGN}Using Gateway IP Address: ${BGN}$GATE1${CL}"
|
||||
fi
|
||||
fi
|
||||
if (whiptail --defaultno --title "IPv6" --yesno "Disable IPv6?" 10 58); then
|
||||
echo -e "${DGN}Disable IPv6: ${BGN}Yes${CL}"
|
||||
DISABLEIP6="yes"
|
||||
else
|
||||
echo -e "${DGN}Disable IPv6: ${BGN}No${CL}"
|
||||
DISABLEIP6="no"
|
||||
fi
|
||||
MTU1=$(whiptail --inputbox "Set Interface MTU Size (leave blank for default)" 8 58 --title "MTU SIZE" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
@ -359,6 +368,7 @@ fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export ST=$FUSE
|
||||
export DISABLEIPV6=$DISABLEIP6
|
||||
export VERBOSE=$VERB
|
||||
export STD=$VERB2
|
||||
export SSH_ROOT=${SSH}
|
||||
|
Reference in New Issue
Block a user