Skip to content

Commit b9d6343

Browse files
authored
fix(ip-restriction): fix bug of set ip_source_type (#2743)
1 parent 0af00be commit b9d6343

File tree

1 file changed

+1
-0
lines changed
  • plugins/wasm-go/extensions/ip-restriction

1 file changed

+1
-0
lines changed

plugins/wasm-go/extensions/ip-restriction/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func parseConfig(json gjson.Result, config *RestrictionConfig, log log.Log) erro
4848
case HeaderSourceType:
4949
config.IPSourceType = HeaderSourceType
5050
case OriginSourceType:
51+
config.IPSourceType = OriginSourceType
5152
default:
5253
config.IPSourceType = OriginSourceType
5354
}

0 commit comments

Comments
 (0)