Add timeout on check wan address on motd (#7297)
* add timeout on get_wan_address
This commit is contained in:
parent
7aedf208af
commit
5bd697b452
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user