Skip to content

Commit

Permalink
fix: certDomains is not always present
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaser committed Sep 10, 2024
1 parent d55f198 commit 7720fcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function refreshWebGuiCert($restartIfChanged = true)

$certDomains = $status->CertDomains;

if (count($certDomains) === 0) {
if (count($certDomains ?? array()) === 0) {
logmsg("Cannot generate certificate for WebGUI -- HTTPS not enabled for Tailnet.");
return;
}
Expand Down

0 comments on commit 7720fcd

Please sign in to comment.