Debian11设置IPv4优先或禁用IPv6
Zing
VPS
Debian
nano /etc/gai.conf
sed -i 's/#precedence ::ffff:0:0\/96 100/precedence ::ffff:0:0\/96 100/' /etc/gai.conf
nano /etc/sysctl.conf
sysctl -p