From b1991214131cee42377dadb092861dbe5493cff2 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Wed, 25 Apr 2018 09:47:29 +0200 Subject: nc-info: provide timeout for wget --- bin/ncp-diag | 4 ++-- changelog.md | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/ncp-diag b/bin/ncp-diag index 573e14c0..433843f4 100644 --- a/bin/ncp-diag +++ b/bin/ncp-diag @@ -59,8 +59,8 @@ echo "internet check|$( ping -W 2 -w 1 -q github.com &>/dev/null && echo ok || e function is_port_open() { PORT=$1 - wget -q http://canyouseeme.org --post-data \ - "IP=$(wget -q ipinfo.io/ip -O -)&port=$PORT" \ + wget -T2 -q http://canyouseeme.org --post-data \ + "IP=$(wget -T2 -q ipinfo.io/ip -O -)&port=$PORT" \ -O - | grep -q "Connection refused" && { echo "closed"; return 1; } echo "open" } diff --git a/changelog.md b/changelog.md index c0ce40b9..bcc9dc95 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.53.32](https://github.com/nextcloud/nextcloudpi/commit/b459c0c) (2018-04-22) nc-info: check for existance of ncp-baseimage +[v0.53.33](https://github.com/nextcloud/nextcloudpi/commit/7cbbced) (2018-04-25) nc-info: provide timeout for wget + +[v0.53.32](https://github.com/nextcloud/nextcloudpi/commit/9a89669) (2018-04-22) nc-info: check for existance of ncp-baseimage [v0.53.31](https://github.com/nextcloud/nextcloudpi/commit/4412ef7) (2018-04-21) fix double default gateway -- cgit v1.2.3