From cffb54dbfe7cb726f1affe078008ee86d67c07ed Mon Sep 17 00:00:00 2001 From: yanglc Date: Wed, 30 Aug 2023 00:20:12 +0800 Subject: [PATCH] add ipv6 --- wginstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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私钥和公钥..."