From a8fc11e87cc0c96ae4b9ca293e79a50761388509 Mon Sep 17 00:00:00 2001 From: Andrei Lukyanchyk Date: Tue, 2 Jan 2024 12:13:11 +0100 Subject: [PATCH] add the WAF option --- gcore/options.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcore/options.go b/gcore/options.go index 4664e51..a4426c9 100644 --- a/gcore/options.go +++ b/gcore/options.go @@ -43,6 +43,7 @@ type Options struct { UseDefaultLEChain *UseDefaultLEChain `json:"use_default_le_chain"` UserAgentACL *UserAgentACL `json:"user_agent_acl"` UseRSALECert *UseRSALECert `json:"use_rsa_le_cert"` + WAF *WAF `json:"waf"` Webp *Webp `json:"webp"` // deprecated in favor of image_stack WebSockets *WebSockets `json:"websockets"` } @@ -285,6 +286,11 @@ type UseRSALECert struct { Value bool `json:"value"` } +type WAF struct { + Enabled bool `json:"enabled"` + Value bool `json:"value"` +} + // deprecated in favor of ImageStack type Webp struct { Enabled bool `json:"enabled"`