moving vpn to direct configuration

This commit is contained in:
Nico Schottelius 2020-12-26 14:42:53 +01:00
commit 93e5d39c7b
6 changed files with 64 additions and 7 deletions

View file

@ -48,6 +48,9 @@ class WireGuardVPNPool(models.Model):
@property
def ip_network(self):
"""
Return the IP network based on our address and mask
"""
return ipaddress.ip_network(f"{self.network}/{self.network_mask}")
def __str__(self):