net: allow wider regex in interface name · nodejs/node@76ba129 · GitHub
Skip to content

Commit 76ba129

Browse files
Stewart Addisonaddaleax
authored andcommitted
net: allow wider regex in interface name
Zone IDs on Linux are network interface names. The regex we use to determine valid IPs does not allow for non-alphanumeric characters in the zone ID suffix. Some machines (including the RHEL Linux/s390x machines from Marist) have zone IDs with a '.' character in them which the regex in net.isIP rejects. This changes the regex. Ref: #14500 Signed-off-by: Stewart Addison <sxa@uk.ibm.com> PR-URL: #34364 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 2ab3fcc commit 76ba129

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/internal/net.js

Lines changed: 1 addition & 1 deletion

test/parallel/test-net-isip.js

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)