Skip to content

Commit

Permalink
nc-info: provide timeout for wget
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Apr 25, 2018
1 parent bc0c0d5 commit b199121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/ncp-diag
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit b199121

Please sign in to comment.