Displaying 1 result from an estimated 1 matches for "is_valid_hostname".
2011 Aug 03
0
[PATCH] update valid_hostname regex checks
...lass NodeConfigScreen():
warn = 0
if not self.ntp_host2.value() is None and not self.ntp_host2.value() == "":
if not is_valid_ipv4(self.ntp_host2.value()):
- if not is_valid_ipv6(self.ntp_host1.value()):
- if not is_valid_hostname(self.ntp_host1.value()):
+ if not is_valid_ipv6(self.ntp_host2.value()):
+ if not is_valid_hostname(self.ntp_host2.value()):
warn = 1
if warn == 1:
self.screen.setColor("BUTTON", "black"...