only get WAN IP if actually needed
avoid unnecessary traffic
This commit is contained in:
parent
e802c03a47
commit
2ceee1ca3d
4
lib.sh
4
lib.sh
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user