Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Filter IPv6 addresses by default #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JordanMilne
Copy link

@JordanMilne JordanMilne commented Oct 27, 2016

Fixes #1

We can't safely support IPv6 with our default blacklist since
even hosts on the intranet will usually have globally-routable addresses.

Add a flag to disable IPv6 support and enable it by default.

Since we handle this in resolve() by filtering IPv6 addresses and
raising a UnknownHostException when all addresses were IPv6 we maintain
API compatibility with previous versions of SafeURL.

The examples weren't working for me unless I did this
We can't safely support IPv6 with our default blacklist since
even hosts on the intranet will usually have globally-routable addresses.

Add a flag to disable IPv6 support and enable it by default.

Since we handle this in `resolve()` by filtering IPv6 addresses and
raising a `UnknownHostException` when all addresses were IPv6 we maintain
API compatibility with previous versions of SafeURL.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SafeURL doesn't filter private IPv6 addresses by default
1 participant