From fa08e53b150d83bd58aa21e56c515b52d87b5501 Mon Sep 17 00:00:00 2001 From: Nick Todd Date: Mon, 12 Feb 2024 17:01:53 +0000 Subject: [PATCH] 2297: Convert NTP Client and Server to UDP --- src/primaite/simulator/system/services/ntp/ntp_client.py | 2 +- src/primaite/simulator/system/services/ntp/ntp_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/primaite/simulator/system/services/ntp/ntp_client.py b/src/primaite/simulator/system/services/ntp/ntp_client.py index ddd794ae..43d1d783 100644 --- a/src/primaite/simulator/system/services/ntp/ntp_client.py +++ b/src/primaite/simulator/system/services/ntp/ntp_client.py @@ -21,7 +21,7 @@ class NTPClient(Service): def __init__(self, **kwargs): kwargs["name"] = "NTPClient" kwargs["port"] = Port.NTP - kwargs["protocol"] = IPProtocol.TCP + kwargs["protocol"] = IPProtocol.UDP super().__init__(**kwargs) self.start() diff --git a/src/primaite/simulator/system/services/ntp/ntp_server.py b/src/primaite/simulator/system/services/ntp/ntp_server.py index 3987fa2c..3ae80936 100644 --- a/src/primaite/simulator/system/services/ntp/ntp_server.py +++ b/src/primaite/simulator/system/services/ntp/ntp_server.py @@ -16,7 +16,7 @@ class NTPServer(Service): def __init__(self, **kwargs): kwargs["name"] = "NTPServer" kwargs["port"] = Port.NTP - kwargs["protocol"] = IPProtocol.TCP + kwargs["protocol"] = IPProtocol.UDP super().__init__(**kwargs) self.start()