mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
Tinc, cleanup as discussed https://github.com/opnsense/plugins/pull/756
This commit is contained in:
parent
f27d323a86
commit
a72e918229
1 changed files with 1 additions and 2 deletions
|
|
@ -106,7 +106,6 @@ class Network(NetwConfObject):
|
|||
result.append('ConnectTo = %s' % (host.get_hostname(),))
|
||||
result.append('Device=/dev/tinc%(id)s' % self._payload)
|
||||
result.append('Name=%(hostname)s' % self._payload)
|
||||
result.append('Subnet=%s/32'%self.get_local_address().split('/')[0])
|
||||
return '\n'.join(result)
|
||||
|
||||
def filename(self):
|
||||
|
|
@ -142,7 +141,7 @@ class Host(NetwConfObject):
|
|||
result.append('Address=%(address)s %(port)s'%self._payload)
|
||||
networks = self._payload['subnet'].split(',')
|
||||
for network in networks:
|
||||
result.append('Subnet=%s' % network)
|
||||
result.append('Subnet=%s' % network)
|
||||
result.append('Cipher=%(cipher)s'%self._payload)
|
||||
result.append('Digest=sha256')
|
||||
result.append(self._payload['pubkey'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue