5 lines
162 B
Bash
5 lines
162 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
IP_BROKER=$(nslookup broker | awk '/^Address: / { print $2 }' | tail -n1 | sed -e 's/[[:space:]]//g')
|
||
|
sed -i "s/broker/$IP_BROKER/g" /etc/tor/torrc
|
||
|
tor
|