diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-05-18 12:08:21 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-05-18 12:15:49 +0300 |
commit | cd32b30a707e7b1cbe55d39fe61c8d243d34f3ce (patch) | |
tree | 2bee2c147573d3961765fc2860e942add1a0d043 | |
parent | 93a94da1822f2743efc95174d45b8a5480399daa (diff) |
nc-info: change port checker providersv0.56.4
-rw-r--r-- | bin/ncp-diag | 7 | ||||
-rw-r--r-- | changelog.md | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/bin/ncp-diag b/bin/ncp-diag index 433843f4..4d9159bb 100644 --- a/bin/ncp-diag +++ b/bin/ncp-diag @@ -59,10 +59,9 @@ echo "internet check|$( ping -W 2 -w 1 -q github.com &>/dev/null && echo ok || e function is_port_open() { PORT=$1 - 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" + wget -T2 -t1 -q https://portchecker.co/check --post-data "port=$PORT" -O - \ + | grep -q '<span class="green">open</span>' && { echo "open"; return 1; } + echo "closed" } echo "port check 80|$( is_port_open 80 )" diff --git a/changelog.md b/changelog.md index 0aaf3252..eb3dd47f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.56.3](https://github.com/nextcloud/nextcloudpi/commit/7086145) (2018-05-17) nc-update-nextcloud: make sure backup syncs to disk +[v0.56.4](https://github.com/nextcloud/nextcloudpi/commit/d9ccd20) (2018-05-18) nc-info: change port checker providers + +[v0.56.3](https://github.com/nextcloud/nextcloudpi/commit/31543e6) (2018-05-17) nc-update-nextcloud: make sure backup syncs to disk [v0.56.2](https://github.com/nextcloud/nextcloudpi/commit/5ff8675) (2018-05-15) nc-restore: refuse to restore from /var/www/nextcloud |