Add timeout on check wan address on motd (#7297)

* add timeout on get_wan_address
This commit is contained in:
SuperKali 2024-09-25 13:02:37 +02:00 committed by GitHub
parent 7aedf208af
commit 5bd697b452
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,8 +53,8 @@ function display() {
fi
} # display
function get_wan_address(){
curl -s http://whatismyip.akamai.com/
function get_wan_address() {
curl --connect-timeout 2 -s http://whatismyip.akamai.com/
}
function get_ip_addresses() {