fix suffix

This commit is contained in:
creeper123123321 2021-07-18 20:50:18 -03:00 committed by GitHub
parent e6e621950c
commit 32e33b9d30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
}
}