diff --git a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf index 1e47bd478..d3d429689 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -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