Skip to content

Commit

Permalink
fix a bug of ip-restriction plugin (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjtuzbk authored Oct 22, 2024
1 parent 871ae17 commit 0d79386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wasm-go/extensions/ip-restriction/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func parseConfig(json gjson.Result, config *RestrictionConfig, log wrapper.Log)
}
status := json.Get("status")
if status.Exists() && status.Uint() > 1 {
config.Status = uint32(header.Uint())
config.Status = uint32(status.Uint())
} else {
config.Status = DefaultDenyStatus
}
Expand Down

0 comments on commit 0d79386

Please # to comment.