mirror of
https://github.com/alibaba/higress.git
synced 2026-02-27 14:10:51 +08:00
fix(ip-restriction): fix bug of set ip_source_type (#2743)
This commit is contained in:
@@ -48,6 +48,7 @@ func parseConfig(json gjson.Result, config *RestrictionConfig, log log.Log) erro
|
||||
case HeaderSourceType:
|
||||
config.IPSourceType = HeaderSourceType
|
||||
case OriginSourceType:
|
||||
config.IPSourceType = OriginSourceType
|
||||
default:
|
||||
config.IPSourceType = OriginSourceType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user