Skip to content

Commit

Permalink
chore: use function for status call
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaser committed Aug 27, 2024
1 parent e46c2e8 commit 40b44d3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

$notify = "{$docroot}/webGui/scripts/notify";

exec("tailscale status --json", $out_status);
$status = json_decode(implode($out_status));
$status = getTailscaleStatus();

if (isset($status->Self->KeyExpiry)) {
$expiryTime = new DateTime($status->Self->KeyExpiry);
Expand Down

0 comments on commit 40b44d3

Please sign in to comment.