mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04: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:
parent
cf179b19ad
commit
ceb08f9334
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue