Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #55 from fastly/fgsch/issue_54
Browse files Browse the repository at this point in the history
Make shielding optional
  • Loading branch information
fgsch committed Nov 9, 2018
2 parents 24525c5 + de9171e commit 6b81687
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions waflyctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -2378,8 +2378,10 @@ func main() {
//Default Disabled
DefaultRuleDisabled(config.APIEndpoint, *apiKey, *serviceID, wafID, *client, config)

Info.Printf("WAF enabled with shielding, adding logging condition")
WithShieldingCondition(*client, *serviceID, version, config)
if *withShielding {
Info.Printf("WAF enabled with Shielding, adding logging condition")
WithShieldingCondition(*client, *serviceID, version, config)
}

if *withPX {
Info.Printf("WAF enabled with PerimeterX, adding logging condition")
Expand Down

0 comments on commit 6b81687

Please sign in to comment.