дзеркало
https://github.com/angristan/openvpn-install.git
synced 2025-09-18 10:10:46 +02:00
Update openvpn-install.sh
This commit is contained in:
джерело
c7d8455631
коміт
ddd5a41b11
@ -627,9 +627,9 @@ function installOpenVPN() {
|
||||
|
||||
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
|
||||
if [[ $IPV6_SUPPORT == "y" ]]; then
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused https://ifconfig.co)
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused https://ip.seeip.org)
|
||||
else
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://ifconfig.co)
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://ip.seeip.org)
|
||||
fi
|
||||
ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
|
||||
fi
|
||||
|
Завантаження…
x
Посилання в новій задачі
Block a user