Prevent resolv.conf from changing
This commit is contained in:
parent
62fb59d8b4
commit
f0ff1a6067
|
@ -3592,6 +3592,9 @@ function resolve_dns_via_tor {
|
|||
# point resolv.conf to tor
|
||||
echo 'nameserver 127.0.0.1:53' > /etc/resolv.conf
|
||||
|
||||
# prevent resolv.conf from changing
|
||||
chattr +i /etc/resolv.conf
|
||||
|
||||
echo 'resolve_dns_via_tor' >> $COMPLETION_FILE
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue