Skip to content

Commit

Permalink
perf: use isIPv6 for checking if hostname is isIPv6 (#3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Aug 16, 2024
1 parent 8a9db10 commit 5e50e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dispatcher/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ async function connect (client) {
assert(idx !== -1)
const ip = hostname.substring(1, idx)

assert(net.isIP(ip))
assert(net.isIPv6(ip))
hostname = ip
}

Expand Down

0 comments on commit 5e50e44

Please sign in to comment.