Subject: | FR: Implement flag to allow one in last part |
The code has comment:
# Check if last part of the IP (len part) has only 0s
And it is OK.
But postgres has two types: CIDR and INET [DOC](https://www.postgresql.org/docs/9.6/static/datatype-net-types.html)
select '255.1.0.0/8'::cidr;
ERROR: invalid cidr value: "255.1.0.0/8"
DETAIL: Value has bits set to right of mask.
db=# select '255.1.0.0/8'::inet;
255.1.0.0/8
http://stackoverflow.com/a/43557019/4632019
Please implement flag to allow ::inet format when Net::IP object is created.
thank you.