security/openconnect - template safety and versioning for https://github.com/opnsense/plugins/pull/3815

This commit is contained in:
Ad Schellevis 2024-04-12 09:27:12 +02:00
parent 971b4da0cf
commit 447b8cd5cc
4 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= openconnect
PLUGIN_VERSION= 1.4.5
PLUGIN_VERSION= 1.4.6
PLUGIN_COMMENT= OpenConnect Client
PLUGIN_DEPENDS= openconnect
PLUGIN_MAINTAINER= m.muenz@gmail.com

View file

@ -6,6 +6,10 @@ the Juniper SSL VPN which is now known as Pulse Connect Secure.
Plugin Changelog
================
1.4.6
* add allowinsecure
1.4.5
* Allow ":" and "/" characters in user name

View file

@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/openconnect/general</mount>
<description>Openconnect configuration</description>
<version>1.0.3</version>
<version>1.0.4</version>
<items>
<enabled type="BooleanField">
<Default>0</Default>

View file

@ -25,7 +25,7 @@ token-mode={{ OPNsense.openconnect.general.tokenmode }}
token-secret={{ OPNsense.openconnect.general.tokensecret }}
{% endif %}
{% endif %}
{% if OPNsense.openconnect.general.allowinsecure|default('0') == '1' %}
{% if not helpers.empty('OPNsense.openconnect.general.allowinsecure') %}
allow-insecure-crypto
{% endif %}
{% if helpers.exists('OPNsense.openconnect.general.protocol') and OPNsense.openconnect.general.protocol != '' %}