From 1095a140de484dcd74782e006c504a8fdf914a03 Mon Sep 17 00:00:00 2001 From: zzz Date: Wed, 16 Oct 2019 12:57:50 +0000 Subject: [PATCH] Util: Fix eepget -p :port --- core/java/src/net/i2p/util/EepGet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/src/net/i2p/util/EepGet.java b/core/java/src/net/i2p/util/EepGet.java index de661b662..ad1df2373 100644 --- a/core/java/src/net/i2p/util/EepGet.java +++ b/core/java/src/net/i2p/util/EepGet.java @@ -211,7 +211,8 @@ public class EepGet { int colon = s.indexOf(':'); if (colon >= 0) { // Todo IPv6 [a:b:c]:4444 - proxyHost = s.substring(0, colon); + if (colon > 0) + proxyHost = s.substring(0, colon); String port = s.substring(colon + 1); proxyPort = Integer.parseInt(port); } else {