mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: fix invalid use of option forwardfor
This resolves another infamous warning during config test: 'option forwardfor' ignored for frontend as it requires HTTP mode
This commit is contained in:
@@ -1087,7 +1087,7 @@ frontend {{frontend.name}}
|
||||
http-request replace-header Cookie '^(.*?; )?({{backend_data.persistence_cookiename}}=)"([^;"]*)"(;.*)?$' \1\2\3\4
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if frontend.forwardFor == '1' %}
|
||||
{% if frontend.forwardFor == '1' and frontend.mode == 'http' %}
|
||||
option forwardfor
|
||||
{% endif %}
|
||||
# tuning options
|
||||
|
||||
Reference in New Issue
Block a user