Fixed issue when hostname has extra new-line appended to it
parent
800f57f5f7
commit
10e1efa79e
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue