Skip to content

Commit

Permalink
MINOR: set src-ip-header on default backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Oct 17, 2022
1 parent cf81f3a commit 62f8c16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/haproxy/rules/reqSetSrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ func (r ReqSetSrc) Create(client api.HAProxyClient, frontend *models.Frontend, i
Type: "set-src",
Expr: fmt.Sprintf("hdr(%s)", r.HeaderName),
}
ingressACL += " || !{ var(txn.path_match) -m found }"
return client.FrontendHTTPRequestRuleCreate(frontend.Name, httpRule, ingressACL)
}

0 comments on commit 62f8c16

Please sign in to comment.