|
@@ -501,6 +501,34 @@ function show_ip_addresses {
|
501
|
501
|
echo ''
|
502
|
502
|
}
|
503
|
503
|
|
|
504
|
+function show_tor_bridges {
|
|
505
|
+ bridges_list=$(grep "Bridge " /etc/tor/torrc | grep -v '##')
|
|
506
|
+ if [ ${#bridges_list} -gt 0 ]; then
|
|
507
|
+ echo $'Tor Bridges'
|
|
508
|
+ echo '==========='
|
|
509
|
+ echo ''
|
|
510
|
+ echo "${bridges_list}"
|
|
511
|
+ echo ''
|
|
512
|
+ echo ''
|
|
513
|
+ fi
|
|
514
|
+ if ! grep "#BridgeRelay" /etc/tor/torrc; then
|
|
515
|
+ if grep "BridgeRelay 1" /etc/tor/torrc; then
|
|
516
|
+ read_config_param 'TOR_BRIDGE_PORT'
|
|
517
|
+ read_config_param 'TOR_BRIDGE_NICKNAME'
|
|
518
|
+ if [ ${#TOR_BRIDGE_NICKNAME} -gt 0 ]; then
|
|
519
|
+ echo "Tor bridge on this system"
|
|
520
|
+ echo '========================='
|
|
521
|
+ echo ''
|
|
522
|
+ echo "IP Address: $(get_ipv4_address)"
|
|
523
|
+ echo "Port: ${TOR_BRIDGE_PORT}"
|
|
524
|
+ echo "Nickname: ${TOR_BRIDGE_NICKNAME}"
|
|
525
|
+ echo ''
|
|
526
|
+ echo ''
|
|
527
|
+ fi
|
|
528
|
+ fi
|
|
529
|
+ fi
|
|
530
|
+}
|
|
531
|
+
|
504
|
532
|
function show_ssh_public_key {
|
505
|
533
|
echo $'SSH Public Keys'
|
506
|
534
|
echo '==============='
|
|
@@ -519,6 +547,7 @@ function show_about {
|
519
|
547
|
|
520
|
548
|
clear
|
521
|
549
|
show_ip_addresses
|
|
550
|
+ show_tor_bridges
|
522
|
551
|
show_ssh_public_key
|
523
|
552
|
show_domains
|
524
|
553
|
show_mirrors_password
|