Skip to content

IPAddress.fromString argument to automatically resolve mapped addresses #39

@zefir-git

Description

@zefir-git

The IPAddress.from() static method could have an additional argument to indicate whether to automatically resolve mapped addresses, for example:

IPAddress.from("::ffff:192.0.2.0"); // IPv6 { getMappedIPv4(): IPv4 { toString(): "192.0.2.0" } }
IPAddress.from("::ffff:192.0.2.0", true); // IPv4 { toString(): "192.0.2.0" }

Metadata

Metadata

Assignees

Labels

featureA request, idea, or new functionality

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions