mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
hiddenservice: fix showing the 2nd port
This commit is contained in:
parent
3f9f8b5fe8
commit
7e093473af
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ HiddenServicePort $toPort 127.0.0.1:$fromPort" | sudo tee -a /etc/tor/torrc
|
|||
echo "use with the port: $toPort"
|
||||
echo ""
|
||||
if [ ${#toPort2} -gt 0 ]; then
|
||||
alreadyThere=$(sudo cat /etc/tor/torrc 2>/dev/null | grep -c "\b127.0.0.1:$fromPort2\b")
|
||||
if [ ${alreadyThere} -eq 0 ]; then
|
||||
echo "or the port: $toPort2"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue