We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sample.go
package main // yaegi:tags purego import ( "fmt" "github.com/corazawaf/coraza/v3" ) func main() { waf, err := coraza.NewWAF(coraza.NewWAFConfig(). WithDirectives(`SecRule REMOTE_ADDR "@rx .*" "id:1,phase:1,deny,status:403"`)) // Now we parse our rules if err != nil { fmt.Println(err) } fmt.Printf("%+v\n", waf) }
% go run main.go {waf:0x14000174000}
% yaegi ./main.go run: ./main.go:7:2: import "github.com/corazawaf/coraza/v3" error: /path/to/go/src/project/name/vendor/github.com/corazawaf/coraza/v3/config.go:11:2: import "github.com/corazawaf/coraza/v3/internal/corazawaf" error: /path/to/go/src/project/name/vendor/github.com/corazawaf/coraza/v3/internal/corazawaf/rule.go:13:2: import "unsafe" error: unable to find source related to: "unsafe"
0.15.1
with unsafe being blocked by default in traefik. We cannot develop coraza waf plugin which will be the next generation for modsecurity.
The text was updated successfully, but these errors were encountered:
Encountering similar problems, It seems like there are many problems, not very mature。
Sorry, something went wrong.
Such a shame, I also got a similar error.
No branches or pull requests
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
0.15.1
Additional Notes
with unsafe being blocked by default in traefik. We cannot develop coraza waf plugin which will be the next generation for modsecurity.
The text was updated successfully, but these errors were encountered: