fix: improve headscale proc detection

Check if command line also includes 'serve'.
Move command line processing logic into a helper function.
This commit is contained in:
Giorgi Lekveishvili
2025-04-27 08:20:41 +04:00
committed by Aarnav Tale
parent b1da29b2fb
commit 5e60ac1208
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
export function isHeadscaleServeCmd(cmdline: string): boolean {
return cmdline.includes('headscale') && cmdline.includes("serve");
}