mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
use netcat instead of bitnodes
This commit is contained in:
parent
6421467b20
commit
53f56fea41
@ -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…
Reference in New Issue
Block a user