Skip to content

Commit

Permalink
Add timeout on check wan address on motd (#7297)
Browse files Browse the repository at this point in the history
* add timeout on get_wan_address
  • Loading branch information
SuperKali authored Sep 25, 2024
1 parent 7aedf20 commit 5bd697b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bsp/common/etc/update-motd.d/30-armbian-sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5bd697b

Please sign in to comment.