From 2e42750b094cf42b041e45e2371d6981930eff96 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sat, 18 Oct 2025 21:30:53 +0200 Subject: [PATCH] Spawn in background, just in case --- installer/src/tplink.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/src/tplink.rs b/installer/src/tplink.rs index 17dda42..66bf5e1 100644 --- a/installer/src/tplink.rs +++ b/installer/src/tplink.rs @@ -295,7 +295,7 @@ async fn handler(state: State, mut req: Request) -> Result new Promise(resolve => setTimeout(resolve, ms)); var rayhunterPoll = window.setInterval(async () => { - Globals.models.PTModel.add({applicationName: "rayhunter-daemon", enableState: 1, entryId: 1, openPort: "2401", openProtocol: "TCP", triggerPort: "$(/etc/init.d/rayhunter_daemon start)", triggerProtocol: "TCP"}); + Globals.models.PTModel.add({applicationName: "rayhunter-daemon", enableState: 1, entryId: 1, openPort: "2401", openProtocol: "TCP", triggerPort: "$(/etc/init.d/rayhunter_daemon start &)", triggerProtocol: "TCP"}); console.log("rayhunter: first request succeeded, stopping rayhunter poll loop"); window.clearInterval(rayhunterPoll); @@ -308,7 +308,7 @@ async fn handler(state: State, mut req: Request) -> Result