diff --git a/wginstall.sh b/wginstall.sh index 9c248fd..ba4a4f8 100644 --- a/wginstall.sh +++ b/wginstall.sh @@ -37,9 +37,9 @@ install_wireguard() { generate_keys() { echo 1 > /proc/sys/net/ipv4/ip_forward - #echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf - #echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf + echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf cd /etc/wireguard # 生成WireGuard私钥和公钥 echo "正在生成WireGuard私钥和公钥..."