-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
be more forgiving of IPv4-mapped addresses in json (#1404)
Currently Zipkin checks that all IPv6 addresses are 16 bytes long. However, if an IPv4-mapped addresses such as `::ffff:192.168.1.128` is given then InetAddress.getByName will return an Inet4Address and the assertion will fail. Instead accept the address, but store it as ipv4 to maintain all existing assertions. This absolves clients of reconciling the nuances of IPv4-mapped addresses in their environments (for example, in node `net.isIPv6('::ffff:192.168.1.128')` is true) with Java's.
- Loading branch information
1 parent
5905ba5
commit 43a0396
Showing
2 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters