mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-01-07 23:11:50 +08:00
fixed check ipv6 dns
This commit is contained in:
parent
caa9a90476
commit
b3dc60b7ca
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ def check_DNS(dns):
|
|||
dns = dns.replace(' ','').split(',')
|
||||
status = True
|
||||
for i in dns:
|
||||
if not (regex_match("((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}", i) 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(dns) 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue