mirror of
https://github.com/alibaba/higress.git
synced 2026-05-27 06:07:27 +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")
|
status := json.Get("status")
|
||||||
if status.Exists() && status.Uint() > 1 {
|
if status.Exists() && status.Uint() > 1 {
|
||||||
config.Status = uint32(header.Uint())
|
config.Status = uint32(status.Uint())
|
||||||
} else {
|
} else {
|
||||||
config.Status = DefaultDenyStatus
|
config.Status = DefaultDenyStatus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user