mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +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) {
|
public AddressParser parse(String address, String viaHostName) {
|
||||||
address = StringsKt.removeSuffix(address, ".");
|
address = StringsKt.removeSuffix(address, ".");
|
||||||
String suffixRemoved = StringsKt.removeSuffix(address, viaHostName);
|
String suffixRemoved = StringsKt.removeSuffix(address, "." + viaHostName);
|
||||||
|
|
||||||
if (suffixRemoved.equals(address)) {
|
if (suffixRemoved.equals(address)) {
|
||||||
serverAddress = address;
|
serverAddress = address;
|
||||||
@ -108,4 +108,4 @@ public class AddressParser {
|
|||||||
if (ver != null) protocol = ver.getVersion();
|
if (ver != null) protocol = ver.getVersion();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user