mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix v6 detection when using wg-quick
and probably other weird routing setups
This commit is contained in:
parent
9a78a5bf4f
commit
f0356782d5
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue