Fixed issue when hostname has extra new-line appended to it

connection_type_change
Robinson 2022-05-06 00:53:06 +02:00
parent 800f57f5f7
commit 10e1efa79e
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ object Hosts {
}
}
}
}catch (ignored: Exception) {
} catch (ignored: Exception) {
}
}
@ -66,6 +66,7 @@ object Hosts {
hostName = "localhost"
}
hostName
// there can be extra new-line characters which we do not want
hostName.trim()
}
}