Skip to content

Commit

Permalink
fix #1848
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Feb 28, 2024
1 parent bbb9e81 commit ce130d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions otoroshi/app/wasm/proxywasm/coraza.scala
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,12 @@ class NgCorazaWAF extends NgAccessValidator with NgRequestTransformer {
val plugin = if (plugins.contains(key)) {
plugins(key)
} else {
val url = s"http://127.0.0.1:${env.httpPort}/__otoroshi_assets/wasm/coraza-proxy-wasm-v0.5.0.wasm?$key"
//val url = s"http://127.0.0.1:${env.httpPort}/__otoroshi_assets/wasm/coraza-proxy-wasm-v0.5.0.wasm?$key"
val url = "wasm/coraza-proxy-wasm-v0.5.0.wasm"
val p = new CorazaPlugin(
WasmConfig(
source = WasmSource(
kind = WasmSourceKind.Http,
kind = WasmSourceKind.ClassPath,
path = url
),
memoryPages = 10000,
Expand Down

0 comments on commit ce130d1

Please sign in to comment.