diff --git a/pom.xml b/pom.xml
index adfa005..0351590 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
mldht.core
libmldht
- 0.0.1-SNAPSHOT
+ 0.1.0
mldht - Bittorrent Mainline DHT library
jar
diff --git a/src/lbms/plugins/mldht/kad/DHTConstants.java b/src/lbms/plugins/mldht/kad/DHTConstants.java
index 5cf439f..667d3d7 100644
--- a/src/lbms/plugins/mldht/kad/DHTConstants.java
+++ b/src/lbms/plugins/mldht/kad/DHTConstants.java
@@ -63,14 +63,19 @@ public class DHTConstants {
InetSocketAddress.createUnresolved("router.utorrent.com", 6881),
InetSocketAddress.createUnresolved("router.silotis.us", 6881),
};
- private static String version = "AZ00";
+ private static String version = null;
public static String getVersion() {
return version;
}
public static void setVersion (int ver) {
- version = "Az" + new String(new byte[] { (byte) (ver >> 8 & 0xFF) , (byte) (ver & 0xff) }, StandardCharsets.ISO_8859_1);
+ version = "ml" + new String(new byte[] { (byte) (ver >> 8 & 0xFF) , (byte) (ver & 0xff) }, StandardCharsets.ISO_8859_1);
+ }
+
+ static {
+ // 0.1.0
+ setVersion(10);
}
}