fix foir tron

This commit is contained in:
squidbear
2025-03-31 12:59:11 +02:00
parent 0a1c490e87
commit 24f12d7b94
2 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ for path in $pathlist; do
RPC_URL="$PROTO://$DOMAIN$path"
response_file=$(mktemp)
http_status_code=$(curl --ipv4 -m 1 -s -X POST -w "%{http_code}" -o "$response_file" -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' $RPC_URL)
http_status_code=$(curl -L --ipv4 -m 1 -s -X POST -w "%{http_code}" -o "$response_file" -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' $RPC_URL)
if [ $? -eq 0 ]; then