From 027efe43dfb6de6b43ce5feb698c5aacf8c12888 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Sat, 20 Jun 2015 08:09:51 +0200 Subject: [PATCH] Version 0.1.2 bump - fixed problem where IPv4 Addresses weren't converted correctly. --- build.gradle | 2 +- .../ch/dissem/bitmessage/entity/valueobject/NetworkAddress.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index dfa2df8..da8e3ef 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ allprojects { sourceCompatibility = 1.7 group = 'ch.dissem.jabit' - version = '0.1.2-SNAPSHOT' + version = '0.1.2' repositories { mavenCentral() diff --git a/domain/src/main/java/ch/dissem/bitmessage/entity/valueobject/NetworkAddress.java b/domain/src/main/java/ch/dissem/bitmessage/entity/valueobject/NetworkAddress.java index 09cca10..794ae44 100644 --- a/domain/src/main/java/ch/dissem/bitmessage/entity/valueobject/NetworkAddress.java +++ b/domain/src/main/java/ch/dissem/bitmessage/entity/valueobject/NetworkAddress.java @@ -157,6 +157,8 @@ public class NetworkAddress implements Streamable { this.ipv6 = addr; } else if (addr.length == 4) { this.ipv6 = new byte[16]; + this.ipv6[10] = (byte) 0xff; + this.ipv6[11] = (byte) 0xff; System.arraycopy(addr, 0, this.ipv6, 12, 4); } else { throw new IllegalArgumentException("Weird address " + inetAddress);