Skip to content

Issue with IPV6 addresses preceding IPV4 on Linux #16

@zpappa

Description

@zpappa

Not sure if this affects other systems but I noticed an issue when trying this out on Fedora 23.

connection.remoteAddress from net.createServer includes what appears to be an IPV6 address preceding the IPV4 address. Example: ::ffff:127.0.0.1

This can be remedied by simply using a better conditional inside worker_index

if (!isNaN(ip[i])) { s += ip[i]; }
I have the edit for the readme.md available in a fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions