moving vpn to direct configuration
This commit is contained in:
parent
18d4c99571
commit
93e5d39c7b
6 changed files with 64 additions and 7 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue