mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
fixed ending dot, fix ctrl+d
This commit is contained in:
parent
55aa9fe9f9
commit
5c89aecb65
@ -143,7 +143,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
initFuture.complete(Unit)
|
||||
|
||||
while (runningServer) {
|
||||
if (runningServer) {
|
||||
VIAaaSConsole().start()
|
||||
}
|
||||
|
||||
@ -301,7 +301,8 @@ class VIAaaSAddress {
|
||||
var port: Int? = null
|
||||
var online: Boolean? = null
|
||||
var username: String? = null
|
||||
fun parse(address: String, viaHostName: String): VIAaaSAddress {
|
||||
fun parse(rawAddress: String, viaHostName: String): VIAaaSAddress {
|
||||
val address = rawAddress.removeSuffix(".")
|
||||
val suffixRemoved = address.removeSuffix(".$viaHostName")
|
||||
|
||||
if (suffixRemoved == address) {
|
||||
|
Loading…
Reference in New Issue
Block a user