net/haproxy: fix option to add X-Forwarded-For header

This commit is contained in:
Frank Wall
2016-05-31 15:29:45 +02:00
parent 00ec2e0c17
commit b12df30e62
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= haproxy
PLUGIN_VERSION= 1.1
PLUGIN_VERSION= 1.2
PLUGIN_COMMENT= Reliable, high performance TCP/HTTP load balancer
PLUGIN_DEPENDS= haproxy
PLUGIN_MAINTAINER= opnsense@moov.de
@@ -1,5 +1,5 @@
name: opnsense-haproxy
version: 1.1
version: 1.2
origin: opnsense/haproxy
comment: load balancer
desc: Reliable, high performance TCP/HTTP load balancer
@@ -554,6 +554,9 @@ frontend {{frontend.name}}
{% if frontend.defaultBackend|default("") != "" %}
{% set backend_data = helpers.getUUID(frontend.defaultBackend) %}
default_backend {{backend_data.name}}
{% endif %}
{% if frontend.forwardFor == '1' %}
option forwardfor
{% endif %}
# tuning options
{% if frontend.tuning_maxConnections is defined %}