|
|
@ -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]: |
|
|
|
def startLocalProxy(global_end_event: threading.Event, remote_ws_uri: str, local_port: int) -> dict[str, int]: |
|
|
|
try: |
|
|
|
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: |
|
|
|
if local_port not in LOCAL_PORT_WHITELIST: |
|
|
|
raise Exception("Requested local port not whitelisted") |
|
|
|
raise Exception("Requested local port not whitelisted") |
|
|
|
|
|
|
|
|
|
|
|