mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-07-30 15:54:52 +02:00
Manage AllowedIPs for client config file
This commit is contained in:
parent
7561156235
commit
32931dfd16
11 changed files with 188 additions and 106 deletions
|
@ -111,7 +111,7 @@ class PeerAllowedIP(models.Model):
|
|||
priority = models.PositiveBigIntegerField(default=1)
|
||||
allowed_ip = models.GenericIPAddressField(protocol='IPv4')
|
||||
netmask = models.IntegerField(default=32, choices=NETMASK_CHOICES)
|
||||
missing_from_wireguard = models.BooleanField(default=False)
|
||||
config_file = models.CharField(max_length=6, choices=(('server', 'Server Config'), ('client', 'Client config')), default='server')
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue