mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 11:38:00 +08:00
Update install_pve.sh
This commit is contained in:
parent
ae1fd5a371
commit
45c87950fe
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ if [ "${hostname}" != "pve" ]; then
|
|||
chattr +i /etc/hosts
|
||||
fi
|
||||
|
||||
## 更改网络优先级为IPV4优先
|
||||
sed -i 's/.*precedence ::ffff:0:0\/96.*/precedence ::ffff:0:0\/96 100/g' /etc/gai.conf && systemctl restart networking
|
||||
|
||||
## ChinaIP检测
|
||||
if [[ -z "${CN}" ]]; then
|
||||
if [[ $(curl -m 10 -s https://ipapi.co/json | grep 'China') != "" ]]; then
|
||||
|
|
Loading…
Reference in a new issue