mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-22 10:10:46 +01:00
clone: some code cleanup
This commit is contained in:
@@ -113,10 +113,8 @@ validate_ip() {
|
|||||||
local _ip6="$(echo ${_ip} | grep -E '^(([a-fA-F0-9:]+$)|([a-fA-F0-9:]+\/[0-9]{1,3}$)|SLAAC)')"
|
local _ip6="$(echo ${_ip} | grep -E '^(([a-fA-F0-9:]+$)|([a-fA-F0-9:]+\/[0-9]{1,3}$)|SLAAC)')"
|
||||||
|
|
||||||
if [ -n "${_ip6}" ]; then
|
if [ -n "${_ip6}" ]; then
|
||||||
if [ "${_ip6}" = "SLAAC" ]; then
|
if [ "${_ip6}" = "SLAAC" ] && [ "$(bastille config ${TARGET} get vnet)" != "enabled" ]; then
|
||||||
if [ "$(bastille config ${TARGET} get vnet)" != "enabled" ]; then
|
error_exit "[ERROR]: Unsupported IP option for standard jail: (${_ip6})."
|
||||||
error_exit "[ERROR]: Unsupported IP option for standard jail: (${_ip6})."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
info "\nValid: (${_ip6})."
|
info "\nValid: (${_ip6})."
|
||||||
IP6_ADDR="${_ip6}"
|
IP6_ADDR="${_ip6}"
|
||||||
|
|||||||
Reference in New Issue
Block a user