mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 18:37:41 +01:00
avoid line break when TOR
This commit is contained in:
@@ -156,12 +156,14 @@ networkConnections=$(echo ${networkInfo} | jq -r '.connections')
|
|||||||
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}connections"
|
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}connections"
|
||||||
if [ "${onionAddress}" != "null" ]; then
|
if [ "${onionAddress}" != "null" ]; then
|
||||||
# TOR address
|
# TOR address
|
||||||
|
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}peers"
|
||||||
public_addr="${onionAddress}:${public_port}"
|
public_addr="${onionAddress}:${public_port}"
|
||||||
public=""
|
public=""
|
||||||
public_color="${color_green}"
|
public_color="${color_green}"
|
||||||
torInfo="+ TOR"
|
torInfo="+ TOR"
|
||||||
else
|
else
|
||||||
# IP address
|
# IP address
|
||||||
|
networkConnectionsInfo="${color_purple}${networkConnections} ${color_gray}connections"
|
||||||
public_addr="${public_ip}:${public_port}"
|
public_addr="${public_ip}:${public_port}"
|
||||||
public_check=$(nc -z -w6 ${public_ip} ${public_port} 2>/dev/null; echo $?)
|
public_check=$(nc -z -w6 ${public_ip} ${public_port} 2>/dev/null; echo $?)
|
||||||
if [ $public_check = "0" ]; then
|
if [ $public_check = "0" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user