mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: avoid API exception when HAProxy integration is incomplete
This commit is contained in:
committed by
Franco Fichtner
parent
f157329ca4
commit
e4e88e66c5
+5
@@ -322,6 +322,11 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
(string)$validation->method == "http01" and
|
||||
(string)$validation->http_service == "haproxy") {
|
||||
//$this->getLogger()->error("LE HAProxy DEBUG: checking validation method: " . (string)$validation->name);
|
||||
// Check if HAProxy frontends were specified.
|
||||
if (empty((string)$validation->http_haproxyFrontends)) {
|
||||
// Skip item, no HAProxy frontends were specified.
|
||||
continue;
|
||||
}
|
||||
$_frontends = explode(',', $validation->http_haproxyFrontends);
|
||||
// Walk through all linked frontends.
|
||||
foreach ($_frontends as $_frontend) {
|
||||
|
||||
Reference in New Issue
Block a user