summaryrefslogtreecommitdiffstats
path: root/sshuttle/client.py
diff options
context:
space:
mode:
authorScott Kuhl <kuhl@mtu.edu>2020-11-03 20:27:57 -0500
committerScott Kuhl <kuhl@mtu.edu>2020-11-03 20:27:57 -0500
commit8461e08bc3db2170a28cab33e2af1cb08f321cb0 (patch)
tree3e2ea29d0719f0432e8467f67ef818bd0fdfc8b1 /sshuttle/client.py
parent502960d7967f39c6e21617e725960aebf890dbb6 (diff)
Make server and client handle resolv.conf differently.
The server should just read from resolv.conf to find DNS servers to use. This restores this behavior after the previous commit changed it. The client now reads both /etc/resolv.conf and /run/systemd/resolve/resolv.conf. The latter is required to more reliably intercept regular DNS requests that systemd-resolved makes.
Diffstat (limited to 'sshuttle/client.py')
-rw-r--r--sshuttle/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py
index da23b7d..ab28d0b 100644
--- a/sshuttle/client.py
+++ b/sshuttle/client.py
@@ -589,7 +589,7 @@ def main(listenip_v6, listenip_v4,
# redirect packets outgoing to this server to the remote host
# instead.
if dns:
- nslist += resolvconf_nameservers()
+ nslist += resolvconf_nameservers(True)
if to_nameserver is not None:
to_nameserver = "%s@%s" % tuple(to_nameserver[1:])
else: