mirror of
https://github.com/alibaba/higress.git
synced 2026-03-07 10:00:48 +08:00
fix a bug of ip-restriction plugin (#1422)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user