post nodes to monero.fail

This commit is contained in:
qvqc 2021-07-03 23:26:56 -04:00
parent 08dcef23de
commit a173523c5c
No known key found for this signature in database
GPG Key ID: 9EB04103C6BE892D
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ echo "anonymous-inbound="$i2p":34565,127.0.0.1:34565,64" >> /etc/wownerod.conf
onion=$(cat /var/lib/tor/wowbox/hostname)
echo "anonymous-inbound="$onion":34566,127.0.0.1:34566,64" >> /etc/wownerod.conf
curl -q -X POST https://monero.fail/add -d node_url="$i2p" > /dev/null 2>&1
curl -q -X POST https://monero.fail/add -d node_url="$onion" > /dev/null 2>&1
failService=$(curl https://monero.fail/?crypto=wownero 2>&1 | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "34568" | sort -u | sed -E 's/^\s*.*:\/\///g' | sed -e 's/^/add-peer=/')
echo $failService|tr " " "\n" >> /etc/wownerod.conf