Remove hidden service definitions from torrc

This commit is contained in:
Bob Mottram 2018-04-20 11:47:23 +01:00
parent 5e80ab9df4
commit 88851408b9
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ function torrc_migrate {
sed -i '/DNSListenAddress 127.0.0./d' /etc/tor/torrc
sed -i '/AutomapHostsOnResolve 1/d' /etc/tor/torrc
sed -i '/HiddenServiceDir/d' /etc/tor/torrc
sed -i '/HiddenServiceVersion/d' /etc/tor/torrc
sed -i '/HiddenServicePort/d' /etc/tor/torrc
systemctl restart tor
}