Development
This commit is contained in:
parent
82df24f294
commit
6cfb070b7f
3 changed files with 4 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ def ipv4_or_cidr(value):
|
|||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
ipaddress.IPv4Network(v, strict=False)
|
||||
ipaddress.IPv4Network(v, strict=True)
|
||||
return v
|
||||
except ValueError:
|
||||
return ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue