mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
www/web-proxy-useracl: follow core change
This commit is contained in:
parent
66ab992079
commit
9c063bddbc
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= web-proxy-useracl
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= Group and user ACL for the web proxy
|
||||
PLUGIN_MAINTAINER= kekek2@ya.ru
|
||||
PLUGIN_WWW= https://smart-soft.ru
|
||||
|
|
|
|||
|
|
@ -44,9 +44,9 @@ acl user_{{ACL.Priority}} proxy_auth "/usr/local/etc/squid/ACL_useracl_{{ ACL.Pr
|
|||
{% if ldap|length == 1 or local|length == 1 %}
|
||||
{% for element in ACL.Domains.split(",") %}
|
||||
{% if '^' in element or '\\' in element or '$' in element or '[' in element %}
|
||||
acl domains_{{ACL.Priority}} url_regex {{element}}
|
||||
acl domains_{{ACL.Priority}} url_regex {{element|encode_idna}}
|
||||
{% else %}
|
||||
acl domains_{{ACL.Priority}} url_regex {{element|replace(".","\.")}}
|
||||
acl domains_{{ACL.Priority}} url_regex {{element|encode_idna|replace(".","\.")}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue