Skip to content

Handling IPv4, and IPv4-mapped IPv6 #6

@suprstarrd

Description

@suprstarrd

This has been moved from a comment.

Seeing 1613f6a, checkIP has been changed to resolve #4:

function checkIP(intake: String) {
     intake = intake.replace('::ffff:', '');

I fear the way this has been changed could be a problem when IPv6 becomes standard.

::ffff: signifies that this is an IPv4-mapped IPv6 address. 0.0.0.0 in IPv4 would look like ::ffff:0.0.0.0 in IPv6.

I think the proper thing to do here would be to adapt all IP's handled that are IPv4 to IPv4-mapped IPv6. The IP's can be treated the same way regardless of source and IP compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    containerRelated to the container

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions