From 5511b360330a1e553d6d1317c8c8b8aefecd86ca Mon Sep 17 00:00:00 2001 From: The8472 Date: Fri, 28 Jul 2017 21:43:33 +0200 Subject: [PATCH] version 0.1 --- pom.xml | 2 +- src/lbms/plugins/mldht/kad/DHTConstants.java | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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); } }