mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-09-10 08:24:15 +08:00
Update
This commit is contained in:
parent
edd0e0da36
commit
f27168e73a
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue