Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-04-25 10:47:29 +0300
committernachoparker <nacho@ownyourbits.com>2018-04-25 10:48:01 +0300
commitb1991214131cee42377dadb092861dbe5493cff2 (patch)
tree644ea09d8aaf38cf6e144a8f2a8f139dcb0f5903
parentbc0c0d5a2cf216430ad1894878f48c1ad5b621a5 (diff)
nc-info: provide timeout for wgetv0.53.33
-rw-r--r--bin/ncp-diag4
-rw-r--r--changelog.md4
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