From 9ad23335460eabcb5390bd21a5f5a8bc9dbb7dec Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 16 Oct 2024 10:59:58 -0700 Subject: [PATCH] athena: migrate old termux SSH port to new one --- system/athena/athenad.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/athena/athenad.py b/system/athena/athenad.py index 56b3bb609c2bda..b5a8f5127fed13 100755 --- a/system/athena/athenad.py +++ b/system/athena/athenad.py @@ -445,6 +445,10 @@ def setRouteViewed(route: str) -> dict[str, int | str]: def startLocalProxy(global_end_event: threading.Event, remote_ws_uri: str, local_port: int) -> dict[str, int]: try: + # migration, can be removed once 0.9.8 is out for a while + if local_port == 8022: + local_port = 22 + if local_port not in LOCAL_PORT_WHITELIST: raise Exception("Requested local port not whitelisted")