From cf1d150f287aeb70a413c18bfbb4793a727c8836 Mon Sep 17 00:00:00 2001 From: Abdullah Gohar Date: Fri, 29 Mar 2024 23:59:44 +0500 Subject: [PATCH 1/2] Fixed windows client module not found error --- software/source/clients/windows/__init__.py | 0 software/source/clients/windows/device.py | 10 ++++++++++ software/start.py | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 software/source/clients/windows/__init__.py create mode 100644 software/source/clients/windows/device.py diff --git a/software/source/clients/windows/__init__.py b/software/source/clients/windows/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/software/source/clients/windows/device.py b/software/source/clients/windows/device.py new file mode 100644 index 0000000..a9a79c0 --- /dev/null +++ b/software/source/clients/windows/device.py @@ -0,0 +1,10 @@ +from ..base_device import Device + +device = Device() + +def main(server_url): + device.server_url = server_url + device.start() + +if __name__ == "__main__": + main() diff --git a/software/start.py b/software/start.py index 70088e4..a93a488 100644 --- a/software/start.py +++ b/software/start.py @@ -65,7 +65,7 @@ def run( def _run( server: bool = False, server_host: str = "0.0.0.0", - server_port: int = 10001, + server_port: int = 3000, tunnel_service: str = "bore", expose: bool = False, @@ -123,6 +123,8 @@ def _run( system_type = platform.system() if system_type == "Darwin": # Mac OS client_type = "mac" + elif system_type == "Windows": # Windows System + client_type = "windows" elif system_type == "Linux": # Linux System try: with open('/proc/device-tree/model', 'r') as m: From 6d8bc4885f47b3864fd886d2477c77925b5fdc5f Mon Sep 17 00:00:00 2001 From: Abdullah-Gohar <74107339+Abdullah-Gohar@users.noreply.github.com> Date: Sat, 30 Mar 2024 05:27:35 +0500 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Davy Peter Braun <543614+dheavy@users.noreply.github.com> --- software/start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/start.py b/software/start.py index a93a488..6cc41f1 100644 --- a/software/start.py +++ b/software/start.py @@ -65,7 +65,7 @@ def run( def _run( server: bool = False, server_host: str = "0.0.0.0", - server_port: int = 3000, + server_port: int = 10001, tunnel_service: str = "bore", expose: bool = False,