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);