From 45c87950fe2f69577cd16752a17ce7a82310be0b Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 28 May 2023 17:29:38 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 2b2f2d3..85e96b0 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -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