mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/haproxy: fix backend name for nbsrv parameter
This commit is contained in:
parent
f40164b9e3
commit
e2b87f48d6
1 changed files with 2 additions and 1 deletions
|
|
@ -215,7 +215,8 @@
|
|||
{% do acl_options.append('') %}
|
||||
{% if acl_data.nbsrv|default("") != "" %}
|
||||
{% if acl_data.nbsrv_backend|default("") != "" %}
|
||||
{% do acl_options.append('nbsrv(backend_' ~ acl_data.nbsrv_backend ~ ') ge ' ~ acl_data.nbsrv) %}
|
||||
{% set nbsrv_backend_data = helpers.getUUID(acl_data.nbsrv_backend) %}
|
||||
{% do acl_options.append('nbsrv(' ~ nbsrv_backend_data.name ~ ') ge ' ~ acl_data.nbsrv) %}
|
||||
{% else %}
|
||||
{% do acl_options.append('nbsrv ge ' ~ acl_data.nbsrv) %}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue