diff --git a/docs/source/simulation_components/system/ntp_client_server.rst b/docs/source/simulation_components/system/ntp_client_server.rst index 671126fb..b6d57c13 100644 --- a/docs/source/simulation_components/system/ntp_client_server.rst +++ b/docs/source/simulation_components/system/ntp_client_server.rst @@ -22,7 +22,7 @@ Key capabilities Usage ^^^^^ - Install on a Node via the ``SoftwareManager`` to start the database service. -- Service runs on TCP port 123 by default. +- Service runs on UDP port 123 by default. Implementation ^^^^^^^^^^^^^^ @@ -44,7 +44,7 @@ Usage ^^^^^ - Install on a Node via the ``SoftwareManager`` to start the database service. -- Service runs on TCP port 123 by default. +- Service runs on UDP port 123 by default. Implementation ^^^^^^^^^^^^^^ 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()