fix v6 detection when using wg-quick

and probably other weird routing setups
This commit is contained in:
Julien Rabier 2020-05-21 15:54:14 +00:00 committed by GitHub
parent 9a78a5bf4f
commit f0356782d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ class IPDiagnoser(Diagnoser):
return False return False
# If we are indeed connected in ipv4 or ipv6, we should find a default route # If we are indeed connected in ipv4 or ipv6, we should find a default route
routes = check_output("ip -%s route" % protocol).split("\n") routes = check_output("ip -%s route show table all" % protocol).split("\n")
def is_default_route(r): def is_default_route(r):
# Typically the default route starts with "default" # Typically the default route starts with "default"