This commit is contained in:
spiritlhl 2023-08-04 07:52:20 +00:00
parent edd0e0da36
commit f27168e73a
2 changed files with 8 additions and 0 deletions

View file

@ -58,6 +58,10 @@ check_config(){
is_private_ipv6() {
local address=$1
# 输入不含:符号
if [[ $ip_address != *":"* ]]; then
return 0
fi
# 输入为空
if [[ -z $ip_address ]]; then
return 0

View file

@ -383,6 +383,10 @@ fix_interfaces_ipv6_auto_type(){
is_private_ipv6() {
local address=$1
# 输入不含:符号
if [[ $ip_address != *":"* ]]; then
return 0
fi
# 输入为空
if [[ -z $ip_address ]]; then
return 0