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 #49 from fastly/with_shielding_flag
Browse files Browse the repository at this point in the history
Fix for shielding flag with correct VCL condition
  • Loading branch information
fgsch committed Oct 11, 2018
2 parents c9b33de + cbe417e commit 3507b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go:
- master

before_script:
- go get github.com/golang/lint/golint
- go get golang.org/x/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
- go get github.com/golang/dep/cmd/dep

Expand Down
2 changes: 1 addition & 1 deletion waflyctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ func WithShieldingCondition(client fastly.Client, serviceID string, version int,
Service: serviceID,
Version: version,
Name: "waf-soc-with-shielding",
Statement: "!req.backend.is_shield",
Statement: "waf.executed || fastly_info.state == \"HIT\"",
Type: "RESPONSE",
Priority: 10,
})
Expand Down

0 comments on commit 3507b6a

Please sign in to comment.