nats-io / nats.js

Apache License 2.0
21 stars 3 forks source link

[FIX] identify ipv6 encoding an ipv4 as ipv6 #21

Closed aricart closed 1 month ago

aricart commented 1 month ago

Detecting ipv6 was tried after testing for ipv4, and in cases that there was an ipv4 represented as ipv6, it would return a false positive.

Fix for https://github.com/nats-io/nats.js/issues/635