2297: Convert NTP Client and Server to UDP
This commit is contained in:
@@ -21,7 +21,7 @@ class NTPClient(Service):
|
|||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
kwargs["name"] = "NTPClient"
|
kwargs["name"] = "NTPClient"
|
||||||
kwargs["port"] = Port.NTP
|
kwargs["port"] = Port.NTP
|
||||||
kwargs["protocol"] = IPProtocol.TCP
|
kwargs["protocol"] = IPProtocol.UDP
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class NTPServer(Service):
|
|||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
kwargs["name"] = "NTPServer"
|
kwargs["name"] = "NTPServer"
|
||||||
kwargs["port"] = Port.NTP
|
kwargs["port"] = Port.NTP
|
||||||
kwargs["protocol"] = IPProtocol.TCP
|
kwargs["protocol"] = IPProtocol.UDP
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user