Skip to content

Commit 2a8b907

Browse files
ivanmatmatioktalz
authored andcommitted
MINOR: set src-ip-header on default backend
1 parent 09e380d commit 2a8b907

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/haproxy/rules/reqSetSrc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ func (r ReqSetSrc) Create(client api.HAProxyClient, frontend *models.Frontend, i
3434
Type: "set-src",
3535
Expr: fmt.Sprintf("hdr(%s)", r.HeaderName),
3636
}
37+
ingressACL += " || !{ var(txn.path_match) -m found }"
3738
return client.FrontendHTTPRequestRuleCreate(frontend.Name, httpRule, ingressACL)
3839
}

0 commit comments

Comments
 (0)