This commit is contained in:
Aria Moradi 2021-05-19 23:05:25 +04:30
parent 9cde46b5da
commit ae8d30593f

View File

@ -20,7 +20,7 @@ import ir.armor.tachidesk.server.util.ExitCode.Success
fun openInBrowser() {
val appIP = if (serverConfig.ip == "0.0.0.0") "127.0.0.1" else serverConfig.ip
try {
Desktop.browseURL("http://${appIP}:${serverConfig.port}")
Desktop.browseURL("http://$appIP:${serverConfig.port}")
} catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error
e.printStackTrace()
}