only get WAN IP if actually needed

avoid unnecessary traffic
This commit is contained in:
Daniel Hansson 2023-10-04 19:13:55 +02:00 committed by GitHub
parent e802c03a47
commit 2ceee1ca3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
lib.sh
View File

@ -10,7 +10,9 @@ RUSTDESK_INSTALL_DIR=/var/lib/rustdesk-server
RUSTDESK_LOG_DIR=/var/log/rustdesk-server
ARCH=$(uname -m)
TITLE="RustDesk Linux installer"
WANIP4=$(curl -s -k -m 5 -4 https://api64.ipify.org)
get_wanip4() {
WANIP4=$(curl -s -k -m 5 -4 https://api64.ipify.org)
}
############ Functions