cfmgrv4 init...3
This commit is contained in:
parent
20e9e945fa
commit
6c62ddd2c9
@ -88,7 +88,7 @@ class Firewall extends Cloudflare
|
||||
log_message("notice", "\n-----------Zone {$this->getParentEntity()->getTitle()}의 Firewall 처리 시작-----------");
|
||||
$entitys = [];
|
||||
try {
|
||||
$response = $this->getMySocket()->get("zones/{$this->getParentEntity()->getPK()}//rulesets/phases/http_request_firewall_custom/entrypoint");
|
||||
$response = $this->getMySocket()->get("zones/{$this->getParentEntity()->getPK()}/rulesets/phases/http_request_firewall_custom/entrypoint");
|
||||
$body = json_decode($response->getBody());
|
||||
foreach ($body->result->rules as $rule) {
|
||||
if (!is_object(value: $rule) || get_class($rule) !== 'stdClass') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user