Option to disable IPv6 (#986)

This commit is contained in:
tteckster 2023-01-26 03:55:42 -05:00 committed by GitHub
parent 61df2ea119
commit 6964f82b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
160 changed files with 889 additions and 22 deletions

View file

@ -127,6 +127,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
@ -461,6 +470,7 @@ else
fi
TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null
export DISABLEIPV6=$DISABLEIP6
export VERBOSE=$VERB
export STD=$VERB2
export SSH_ROOT=${SSH}