Skip to content

IPV6 error with percent devicename (for link-local ranges / zone id) #12410

Description

@MasterJames

The url parse function does not function properly when a percent sign (%) deviceName is included in the square brackets of an ipv6 address.
The example you will find here... [fe80::a00:234f:fe1e:29af%enp0s3]
theturtle32/WebSocket-Node#278

On an Ubuntu Server VM with nodejs you see hostname empty after parse thinks the percent means path not host.

host: ""
hostname: ""
href: "wss:///[fe80::a00:380f:fe2f:67fd%enp0s3]/srvlnk"
path: "/[fe80::a00:380f:fe2f:67fd%enp0s3]/srvlnk"
pathname: "/[fe80::a00:380f:fe2f:67fd%enp0s3]/srvlnk"

extra root path marker extra.
Also Note: that I could not get chrome debugging working on 7.8.0 so I reverted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    urlIssues and PRs related to the legacy built-in url module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions