2024-12-20 15:37:04 +08:00
|
|
|
diff --git a/linien-server/linien_server/cli.py b/linien-server/linien_server/cli.py
|
2024-12-18 11:09:38 +08:00
|
|
|
index 98539b2..7781c74 100644
|
2024-12-20 15:37:04 +08:00
|
|
|
--- a/linien-server/linien_server/cli.py
|
|
|
|
+++ b/linien-server/linien_server/cli.py
|
2024-12-18 11:09:38 +08:00
|
|
|
@@ -83,18 +83,9 @@ class LinienServerCLI:
|
|
|
|
else:
|
|
|
|
control = RedPitayaControlService(host=host)
|
|
|
|
|
|
|
|
- if fake or host:
|
|
|
|
- authenticator = no_authenticator
|
|
|
|
- else:
|
|
|
|
- authenticator = username_and_password_authenticator
|
|
|
|
-
|
|
|
|
- try:
|
|
|
|
- if not (fake or host): # only available on RP
|
|
|
|
- mdio_tool.disable_ethernet_blinking()
|
|
|
|
- run_threaded_server(control, authenticator=authenticator)
|
|
|
|
- finally:
|
|
|
|
- if not (fake or host): # only available on RP
|
|
|
|
- mdio_tool.enable_ethernet_blinking()
|
|
|
|
+ authenticator = no_authenticator
|
|
|
|
+
|
|
|
|
+ run_threaded_server(control, authenticator=authenticator)
|
|
|
|
|
|
|
|
def enable(self) -> None:
|
|
|
|
"""Enable the Linien server to start on boot."""
|