Skip to content

Conversation

@jllorente
Copy link
Collaborator

Sanitize IP address with netmask when creating a Rule().

>>> import iptc
>>> rule = iptc.easy.encode_iptc_rule({'dst':'10.10.10.10/24'})
>>> rule.dst
'10.10.10.0/255.255.255.0'

@jllorente jllorente changed the title Issue260 fix Apply subnet mask to IP address - issue260_fix Jun 3, 2019
@ldx
Copy link
Owner

ldx commented Jun 3, 2019

LGTM 👍

@jllorente jllorente merged commit 3ebd22b into master Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants