Displaying 1 result from an estimated 1 matches for "ntp_host1_callback".
2011 Jul 18
0
[PATCH node] fix ipv6 support in dns/ntp callbacks
...self.screen.setColor("BUTTON", "black", "red")
self.screen.setColor("ACTBUTTON", "blue", "white")
@@ -253,6 +255,34 @@ class NodeConfigScreen():
self.reset_screen_colors()
return
+ def ntp_host1_callback(self):
+ warn = 0
+ if not self.ntp_host1.value() is None and not self.ntp_host1.value() == "":
+ if not is_valid_ipv4(self.ntp_host1.value()):
+ if not is_valid_ipv6(self.ntp_host1.value()):
+ warn = 1
+ if...