Skip to content

Commit 5bd697b

Browse files
authored
Add timeout on check wan address on motd (#7297)
* add timeout on get_wan_address
1 parent 7aedf20 commit 5bd697b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/bsp/common/etc/update-motd.d/30-armbian-sysinfo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ function display() {
5353
fi
5454
} # display
5555

56-
function get_wan_address(){
57-
curl -s http://whatismyip.akamai.com/
56+
function get_wan_address() {
57+
curl --connect-timeout 2 -s http://whatismyip.akamai.com/
5858
}
5959

6060
function get_ip_addresses() {

0 commit comments

Comments
 (0)