diff --git a/src/dashboard.py b/src/dashboard.py index 15b7572..ce49d81 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -96,7 +96,7 @@ def check_DNS(dns): dns = dns.replace(' ','').split(',') status = True for i in dns: - if not (check_IP(dns) or regex_match("(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z][a-z]{0,61}[a-z]",i)): + if not (check_IP(i) or regex_match("(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z][a-z]{0,61}[a-z]",i)): return False return True