netaddr / netaddr

A network address manipulation library for Python

Home Page:https://netaddr.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IPNetwork ignores NOHOST when using copy constructor

claytonsingh opened this issue · comments

>>> IPNetwork('192.0.1.1/24', flags=NOHOST)
IPNetwork('192.0.1.0/24')
>>> IPNetwork(IPNetwork('192.0.1.1/24'), flags=NOHOST)
IPNetwork('192.0.1.1/24')

Expected behavior is that the second output returns IPNetwork('192.0.1.0/24').