eclair/eclair-node-gui
Pierre-Marie Padiou 4db5564ada
Handle IPv4-mapped/tor2/tor3 addresses (#559)
* reproduces bug decoding ipv4-mapped-as-ipv6 addresses

* handle IPv4-mapped addresses

`InetAddress.getByAddress` automatically converted IPv4-mapped addresses
into IPv4 addresses, which resulted in them being serialized as IPv4
addresses instead of IPv6 addresses, invalidating the signature.

We now use `Inet6Address.getByAddress` instead.

* added support for parsing tor2/tor3 addresses

Note that there are currently invalid announcements on mainnet due to
https://github.com/ElementsProject/lightning/pull/1175#pullrequestreview-111994441.
2018-04-16 11:23:49 +02:00
..
src Handle IPv4-mapped/tor2/tor3 addresses (#559) 2018-04-16 11:23:49 +02:00
pom.xml back to SNAPSHOT 2018-04-04 13:52:24 +02:00