Browse Source

Merge pull request #37 from vnnkl/betterReachabilityCheck

use netcat instead of bitnodes
#146
Christian Rotzoll 6 years ago
committed by GitHub
parent
commit
f4b46b27d3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      home.admin/00infoBlitz.sh

4
home.admin/00infoBlitz.sh

@ -117,9 +117,9 @@ if [ "${public_port}" = "" ]; then
fi
fi
public_check=$(curl -s https://bitnodes.earn.com/api/v1/nodes/me-${public_port}/ | jq .success)
public_check=$(timeout 2s nc -z ${public_ip} ${public_port}; echo $?)
if [ $public_check = "true" ]; then
if [ $public_check = "0" ]; then
public="Yes"
public_color="${color_green}"
else

Loading…
Cancel
Save