Skip to content

Commit

Permalink
get rid of map block
Browse files Browse the repository at this point in the history
  • Loading branch information
sabban committed Oct 2, 2024
1 parent 863b484 commit a17510d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions t/01lua_config.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ init_by_lua_block {
ngx.log(ngx.ALERT, "[Crowdsec] Initialisation done")
}
map $server_addr $unix {
default 0;
"~unix:" 1;
}
access_by_lua_block {
local cs = require "crowdsec"
if ngx.var.unix == "1" then
Expand Down
5 changes: 0 additions & 5 deletions t/02live.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ init_by_lua_block
ngx.log(ngx.ALERT, "[Crowdsec] Initialisation done")
}

map $server_addr $unix {
default 0;
"~unix:" 1;
}

access_by_lua_block {
local cs = require "crowdsec"
cs.Allow(ngx.var.remote_addr)
Expand Down
5 changes: 0 additions & 5 deletions t/03live_and_ban.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ init_by_lua_block
ngx.log(ngx.ALERT, "[Crowdsec] Initialisation done")
}

map $server_addr $unix {
default 0;
"~unix:" 1;
}

access_by_lua_block {
local cs = require "crowdsec"
cs.Allow(ngx.var.remote_addr)
Expand Down

0 comments on commit a17510d

Please sign in to comment.