From 40b44d3f36ab1cf371f08b0c147319e00c722079 Mon Sep 17 00:00:00 2001 From: Derek Kaser <11674153+dkaser@users.noreply.github.com> Date: Tue, 27 Aug 2024 03:29:28 +0000 Subject: [PATCH] chore: use function for status call --- .../plugins/tailscale/include/daily/check-expiration.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/usr/local/emhttp/plugins/tailscale/include/daily/check-expiration.php b/src/usr/local/emhttp/plugins/tailscale/include/daily/check-expiration.php index 89a77ba..0e4d214 100755 --- a/src/usr/local/emhttp/plugins/tailscale/include/daily/check-expiration.php +++ b/src/usr/local/emhttp/plugins/tailscale/include/daily/check-expiration.php @@ -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);