From 32e33b9d301ed68c0bcd1d4cec96f01f0666d8b0 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sun, 18 Jul 2021 20:50:18 -0300 Subject: [PATCH] fix suffix --- src/main/java/com/viaversion/aas/util/AddressParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/viaversion/aas/util/AddressParser.java b/src/main/java/com/viaversion/aas/util/AddressParser.java index 701e973..4ec288a 100644 --- a/src/main/java/com/viaversion/aas/util/AddressParser.java +++ b/src/main/java/com/viaversion/aas/util/AddressParser.java @@ -21,7 +21,7 @@ public class AddressParser { public AddressParser parse(String address, String viaHostName) { address = StringsKt.removeSuffix(address, "."); - String suffixRemoved = StringsKt.removeSuffix(address, viaHostName); + String suffixRemoved = StringsKt.removeSuffix(address, "." + viaHostName); if (suffixRemoved.equals(address)) { serverAddress = address; @@ -108,4 +108,4 @@ public class AddressParser { if (ver != null) protocol = ver.getVersion(); } } -} \ No newline at end of file +}