Skip to content

Commit 545b01c

Browse files
committed
feat:pass the port flag only if not default(5600)
1 parent 0c9bf80 commit 545b01c

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src-tauri/gen/schemas/acl-manifests.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["core:default","shell:allow-open","dialog:default","opener:default"]},"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"permissions":["autostart:default"],"platforms":["macOS","windows","linux"]}}
1+
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["core:default","shell:allow-open","dialog:default","opener:default"]},"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"permissions":["autostart:default"],"platforms":["macOS","windows","linux"]}}

src-tauri/gen/schemas/desktop-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,4 +2573,4 @@
25732573
]
25742574
}
25752575
}
2576-
}
2576+
}

src-tauri/gen/schemas/macOS-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,4 +2573,4 @@
25732573
]
25742574
}
25752575
}
2576-
}
2576+
}

src-tauri/src/manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ fn start_module_thread(
364364
let port_string = get_config().port.to_string();
365365
let mut command = Command::new(&path);
366366

367-
// Use custom args if provided, otherwise use default port arg
367+
// Use custom args if provided, otherwise only pass port arg if it's not the default (5600)
368368
if let Some(ref args) = custom_args {
369369
command.args(args);
370-
} else {
370+
} else if get_config().port != 5600 {
371371
command.args(["--port", port_string.as_str()]);
372372
}
373373

0 commit comments

Comments
 (0)