Skip to content

Commit efea023

Browse files
committed
fix: allow stopped state
Signed-off-by: Derek Kaser <[email protected]>
1 parent 1057f56 commit efea023

File tree

1 file changed

+1
-1
lines changed
  • src/usr/local/php/unraid-tailscale-utils/unraid-tailscale-utils

1 file changed

+1
-1
lines changed

src/usr/local/php/unraid-tailscale-utils/unraid-tailscale-utils/LocalAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function isReady(): bool
111111

112112
// Check backend state from status endpoint
113113
try {
114-
$acceptedStates = ['Running', 'NeedsLogin', 'NeedsMachineAuth'];
114+
$acceptedStates = ['Running', 'NeedsLogin', 'NeedsMachineAuth', 'Stopped'];
115115
$status = $this->decodeJSONResponse($this->tailscaleLocalAPI('v0/status'));
116116
if (isset($status->BackendState) && in_array($status->BackendState, $acceptedStates, true)) {
117117
return true;

0 commit comments

Comments
 (0)