mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-19 05:50:10 +01:00
fixed
This commit is contained in:
parent
b3dc60b7ca
commit
bdfc260dd2
@ -96,7 +96,7 @@ def check_DNS(dns):
|
|||||||
dns = dns.replace(' ','').split(',')
|
dns = dns.replace(' ','').split(',')
|
||||||
status = True
|
status = True
|
||||||
for i in dns:
|
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 False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user