mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add timeout on check wan address on motd (#7297)
* add timeout on get_wan_address
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user