Merge pull request #13739 from chrrrles/ipaddr_empty_string
ipaddr filter properly handle addresses on /31 networks
This commit is contained in:
commit
1a62fe3874
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ def _ip_query(v):
|
|||
if v.size == 1:
|
||||
return str(v.ip)
|
||||
if v.size > 1:
|
||||
if v.ip != v.network:
|
||||
# /31 networks in netaddr have no broadcast address
|
||||
if v.ip != v.network or not v.broadcast:
|
||||
return str(v.ip)
|
||||
|
||||
def _gateway_query(v):
|
||||
|
|
Loading…
Reference in a new issue