Commit 575077ae authored by Luigi Pinca's avatar Luigi Pinca Committed by Ilkka Myller
Browse files

dns: tweak regex for IPv6 addresses

The regex used in `dns.setServers()` to match IPv6 addresses in square
brackets uses a capturing group for the port but this info is not
needed.

This commit replaces the capturing group with a non capturing one.

PR-URL: https://github.com/nodejs/node/pull/8665


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarBenjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: default avatarIlkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarPrince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
parent 4d958725
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment