Apply suggestions from code review

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Tagada 2023-01-21 13:40:04 +01:00 committed by GitHub
parent 95f98a9c68
commit e00d60b049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ class MyDiagnoser(Diagnoser):
for record in dnsrecords.get("items", [])
)
if failed == 4 and settings_get("misc.network.dns_exposure") != "ipv6" or ipv6_is_important():
if (failed == 4 and settings_get("misc.network.dns_exposure") in ["both", "ipv4"]) or (failed == 6 and ipv6_is_important()):
yield dict(
meta={"port": port},
data={