security/tinc: sync with master

This commit is contained in:
Franco Fichtner 2021-01-18 11:56:17 +01:00
parent 6b4922b688
commit 9df2d8149f
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
PLUGIN_NAME= tinc
PLUGIN_VERSION= 1.6
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Tinc VPN
PLUGIN_DEPENDS= tinc
PLUGIN_MAINTAINER= ad@opnsense.org

View File

@ -23,7 +23,7 @@
</hostname>
<extaddress type="HostnameField">
<Required>N</Required>
<IpAllowed>1</IpAllowed>
<IpAllowed>Y</IpAllowed>
<FieldSeparator>,</FieldSeparator>
<AsList>Y</AsList>
</extaddress>
@ -136,7 +136,7 @@
</extport>
<extaddress type="HostnameField">
<Required>N</Required>
<IpAllowed>1</IpAllowed>
<IpAllowed>Y</IpAllowed>
<FieldSeparator>,</FieldSeparator>
<AsList>Y</AsList>
<Constraints>

View File

@ -141,7 +141,7 @@ class Host(NetwConfObject):
self._connectTo = value.text
def get_subnets(self):
if not self._payload['subnet']:
if not 'subnet' in self._payload:
return
yield from self._payload['subnet'].split(',')