Skip to content

Commit

Permalink
correctly create ssl-redirect if let's encrypt is already activated; f…
Browse files Browse the repository at this point in the history
…ixes #1294

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Dec 3, 2024
1 parent 60f51fd commit 665b879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Froxlor/Api/Commands/Domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ public function update()
}

// Temporarily deactivate ssl_redirect until Let's Encrypt certificate was generated
if (($result['letsencrypt'] != $letsencrypt || $result['ssl_redirect'] != $ssl_redirect) && $ssl_redirect > 0 && $letsencrypt == 1) {
if ($result['letsencrypt'] != $letsencrypt && $ssl_redirect > 0 && $letsencrypt == 1) {
$ssl_redirect = 2;
}

Expand Down

0 comments on commit 665b879

Please sign in to comment.