Skip to content

Add private IP validation parameter to IPv6 function for consistency - #452

Closed
uwezkhan wants to merge 1 commit into
python-validators:masterfrom
uwezkhan:ipaddress-refactor
Closed

uwezkhan wants to merge 1 commit into
python-validators:masterfrom
uwezkhan:ipaddress-refactor

Conversation

@uwezkhan

Copy link
Copy Markdown

This PR adds the missing private parameter to the ipv6 function, ensuring consistent behavior with IPv4. IPv6 now properly validates private addresses (e.g., unique local, link-local) using the standard is_private property.

@uwezkhan

uwezkhan commented Jul 1, 2026

Copy link
Copy Markdown
Author

any update ?

@nandgator

Copy link
Copy Markdown
Collaborator

Thank you for the contribution! #451, #452 and #453 are three variants of the same IP-validation refactor, and the branches currently fail ruff. The private semantics also change (the current behaviour deliberately treats loopback, link-local and similar ranges as private). Please open a single PR rebased on current master that keeps the existing semantics or documents the change, with tests. Closing the duplicates for now.

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.

2 participants