mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 03:02:22 +01:00
Released 9.2.4
This commit is contained in:
@@ -105,16 +105,12 @@ class BackendController extends GetxController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final serverType = type.value;
|
||||||
final hostData = this.host.text.trim();
|
final hostData = this.host.text.trim();
|
||||||
final portData = this.port.text.trim();
|
final portData = this.port.text.trim();
|
||||||
if(type() != ServerType.local) {
|
started.value = true;
|
||||||
started.value = true;
|
if(serverType != ServerType.local || portData != kDefaultBackendPort.toString()) {
|
||||||
yield ServerResult(ServerResultType.starting);
|
yield ServerResult(ServerResultType.starting);
|
||||||
}else {
|
|
||||||
started.value = false;
|
|
||||||
if(portData != kDefaultBackendPort.toString()) {
|
|
||||||
yield ServerResult(ServerResultType.starting);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hostData.isEmpty) {
|
if (hostData.isEmpty) {
|
||||||
@@ -136,7 +132,7 @@ class BackendController extends GetxController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((type() != ServerType.local || portData != kDefaultBackendPort.toString()) && !(await isBackendPortFree())) {
|
if ((serverType != ServerType.local || portData != kDefaultBackendPort.toString()) && !(await isBackendPortFree())) {
|
||||||
yield ServerResult(ServerResultType.freeingPort);
|
yield ServerResult(ServerResultType.freeingPort);
|
||||||
final result = await freeBackendPort();
|
final result = await freeBackendPort();
|
||||||
yield ServerResult(result ? ServerResultType.freePortSuccess : ServerResultType.freePortError);
|
yield ServerResult(result ? ServerResultType.freePortSuccess : ServerResultType.freePortError);
|
||||||
@@ -146,7 +142,7 @@ class BackendController extends GetxController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(type()){
|
switch(serverType){
|
||||||
case ServerType.embedded:
|
case ServerType.embedded:
|
||||||
final process = await startEmbeddedBackend(detached.value);
|
final process = await startEmbeddedBackend(detached.value);
|
||||||
embeddedProcessPid = process.pid;
|
embeddedProcessPid = process.pid;
|
||||||
@@ -173,6 +169,10 @@ class BackendController extends GetxController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
localServer = await startRemoteBackendProxy(Uri.parse("http://$kDefaultBackendHost:$portData"));
|
localServer = await startRemoteBackendProxy(Uri.parse("http://$kDefaultBackendHost:$portData"));
|
||||||
|
}else {
|
||||||
|
// If the local server is running on port 3551 there is no reverse proxy running
|
||||||
|
// We only need to check if everything is working
|
||||||
|
started.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: reboot_launcher
|
name: reboot_launcher
|
||||||
description: Graphical User Interface for Project Reboot
|
description: Graphical User Interface for Project Reboot
|
||||||
version: "9.2.3"
|
version: "9.2.4"
|
||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user