mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-08 19:38:36 +01:00
fix suffix
This commit is contained in:
parent
e6e621950c
commit
32e33b9d30
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user