mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/web-proxy-useracl: follow core change
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-2
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user