diff options
author | Scott Kuhl <kuhl@mtu.edu> | 2020-11-03 20:27:57 -0500 |
---|---|---|
committer | Scott Kuhl <kuhl@mtu.edu> | 2020-11-03 20:27:57 -0500 |
commit | 8461e08bc3db2170a28cab33e2af1cb08f321cb0 (patch) | |
tree | 3e2ea29d0719f0432e8467f67ef818bd0fdfc8b1 /sshuttle/client.py | |
parent | 502960d7967f39c6e21617e725960aebf890dbb6 (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.py | 2 |
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: |