trim host-name config

This commit is contained in:
creeper123123321 2021-04-05 05:53:29 -03:00 committed by GitHub
parent a562017cab
commit eaed8163d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ object VIAaaSConfig : Config(File("config/viaaas.yml")) {
val isNativeTransportMc: Boolean get() = this.getBoolean("native-transport-mc", true)
val port: Int get() = this.getInt("port", 25565)
val bindAddress: String get() = this.getString("bind-address", "localhost")!!
val hostName: List<String> get() = this.getString("host-name", "viaaas.localhost")!!.split(",")
val hostName: List<String> get() = this.getString("host-name", "viaaas.localhost")!!.split(",").map { it.trim() }
val mcRsaSize: Int get() = this.getInt("mc-rsa-size", 4096)
val useStrongRandom: Boolean get() = this.getBoolean("use-strong-random", true)
val blockLocalAddress: Boolean get() = this.getBoolean("block-local-address", true)