Skip to content

Commit 2128398

Browse files
authored
header_rewrite: Fix that address source PLUGIN is unavailable for remap plugin use case (#12518)
1 parent b89b2d9 commit 2128398

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/header_rewrite/header_rewrite.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ TSRemapNewInstance(int argc, char *argv[], void **ih, char * /* errbuf ATS_UNUSE
576576
header_rewrite_ns::inboundIpSource = IP_SRC_PEER;
577577
} else if (strcmp(optarg, "PROXY") == 0) {
578578
header_rewrite_ns::inboundIpSource = IP_SRC_PROXY;
579+
} else if (strcmp(optarg, "PLUGIN") == 0) {
580+
header_rewrite_ns::inboundIpSource = IP_SRC_PLUGIN;
579581
} else {
580582
TSError("[%s] Unknown value for inbound-ip-source parameter: %s", PLUGIN_NAME, optarg);
581583
}

0 commit comments

Comments
 (0)