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);