summaryrefslogtreecommitdiffstats
path: root/sshuttle/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'sshuttle/client.py')
-rw-r--r--sshuttle/client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py
index d85ce08..4b4c89c 100644
--- a/sshuttle/client.py
+++ b/sshuttle/client.py
@@ -547,11 +547,15 @@ def main(listenip_v6, listenip_v4,
else:
listenip_v6 = None
- required.ipv6 = len(subnets_v6) > 0 or len(nslist_v6) > 0 \
- or listenip_v6 is not None
+ required.ipv6 = len(subnets_v6) > 0 or listenip_v6 is not None
required.udp = avail.udp
required.dns = len(nslist) > 0
+ # if IPv6 not supported, ignore IPv6 DNS servers
+ if not required.ipv6:
+ nslist_v6 = []
+ nslist = nslist_v4
+
fw.method.assert_features(required)
if required.ipv6 and listenip_v6 is None: