Skip to content

Commit

Permalink
ncp-web: fix port checking
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <nacho@ownyourbits.com>
  • Loading branch information
nachoparker committed Jun 13, 2020
1 parent aedd8f0 commit 4e79386
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/ncp-diag
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ echo "internet check|$( ping -W 2 -w 1 -q github.com &>/dev/null && echo ok || e
function is_port_open()
{
PORT=$1
wget -T2 -t1 -q https://portchecker.co/check --post-data "port=$PORT" -O - \
wget -T2 -t1 -q https://portchecker.co --post-data "port=$PORT" -O - \
| grep -q '<span class="green">open</span>' && { echo "open"; return 1; }
echo "closed"
}
Expand Down
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

[v1.26.0](https://github.com/nextcloud/nextcloudpi/commit/d2a0136) (2020-06-11) upgrade to NC18.0.5
[v1.26.1](https://github.com/nextcloud/nextcloudpi/commit/8e36668) (2020-06-13) ncp-web: fix port checking

[v1.25.0](https://github.com/nextcloud/nextcloudpi/commit/ed3619f) (2020-04-24) upgrade to NC18.0.4
[v1.26.0](https://github.com/nextcloud/nextcloudpi/commit/aedd8f0) (2020-06-11) upgrade to NC18.0.5

[v1.25.0 ](https://github.com/nextcloud/nextcloudpi/commit/ed3619f) (2020-04-24) upgrade to NC18.0.4

[v1.24.3 ](https://github.com/nextcloud/nextcloudpi/commit/1c45e0d) (2020-04-18) ncp-web: cache backup info

Expand Down

0 comments on commit 4e79386

Please sign in to comment.