mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-04 12:05:04 +02:00
cleanup to only have one lncli call
This commit is contained in:
@@ -135,8 +135,9 @@ torInfo=""
|
|||||||
# Version
|
# Version
|
||||||
networkVersion=$(${network}-cli -datadir=${bitcoin_dir} -version | cut -d ' ' -f6)
|
networkVersion=$(${network}-cli -datadir=${bitcoin_dir} -version | cut -d ' ' -f6)
|
||||||
# TOR or IP
|
# TOR or IP
|
||||||
onionAddress=$(${network}-cli -datadir=${bitcoin_dir} getnetworkinfo | grep '"address"' | cut -d '"' -f4)
|
networkInfo=$(${network}-cli -datadir=${bitcoin_dir} getnetworkinfo)
|
||||||
networkConnections=$(${network}-cli -datadir=${bitcoin_dir} getnetworkinfo | jq -r '.connections')
|
onionAddress=$(echo ${networkInfo} | jq -r '.localaddresses [0] .address')
|
||||||
|
networkConnections=$(echo ${networkInfo} | jq -r '.connections')
|
||||||
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}connections"
|
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}connections"
|
||||||
if [ ${#onionAddress} -gt 0 ]; then
|
if [ ${#onionAddress} -gt 0 ]; then
|
||||||
# TOR address
|
# TOR address
|
||||||
|
Reference in New Issue
Block a user