diff --git a/run-wireguard.sh b/run-wireguard.sh index 0f6c09e..c6d82ef 100644 --- a/run-wireguard.sh +++ b/run-wireguard.sh @@ -87,7 +87,7 @@ wireguard_install(){ s2=$(cat spublickey) c1=$(cat cprivatekey) c2=$(cat cpublickey) - serverip=$(curl https://ddnsip.cn) + serverip=$(curl https://ipv4.ddnsip.cn) port=$(rand 10000 60000) eth=$(ls /sys/class/net | grep e | head -1) chmod 777 -R /etc/wireguard