I mean, the built-in version uses a different port than the free-standing version. If you think it's right, you could extend your script with a corresponding check. Here is an example snippet for clarification:Phithue7 wrote: ↑31 Jul 2024 13:12Code: Select all
# CONFIG snarkurl="http://127.0.0.1:7657/i2psnark/"
Code: Select all
# CONFIG
# snarkurl="http://127.0.0.1:7657/i2psnark/"
# Port build-in ./. stand-alone
for j in 7657 8002
do
curl --silent http://127.0.0.1:${j}/i2psnark/ 1>/dev/null && {
snarkurl="http://127.0.0.1:${j}/i2psnark/"
break
}
done
test -z "${snarkurl}" && {
printf "I2PSnark was not found under the named ports.\n"
exit 1
}
printf "I2PSnark: %s\n" "${snarkurl}"