Skip to content

dns: tweak regex for IPv6 addresses

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

dns

Description of change

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.

Merge request reports

Loading