From a173523c5c4a4bac276e3272a5f5f2121d001b70 Mon Sep 17 00:00:00 2001 From: qvqc Date: Sat, 3 Jul 2021 23:26:56 -0400 Subject: [PATCH] post nodes to monero.fail --- include/usr/bin/wowboxSetup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/usr/bin/wowboxSetup.sh b/include/usr/bin/wowboxSetup.sh index 4613cfd..f2b1931 100755 --- a/include/usr/bin/wowboxSetup.sh +++ b/include/usr/bin/wowboxSetup.sh @@ -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