open server's location please!

This commit is contained in:
Aria Moradi 2021-05-19 13:42:18 +04:30
parent 8ebd7869a5
commit 6bc36193dc

View File

@ -19,7 +19,7 @@ import kotlin.system.exitProcess
fun openInBrowser() { fun openInBrowser() {
try { try {
Desktop.browseURL("http://127.0.0.1:4567") Desktop.browseURL("http://${serverConfig.ip}:${serverConfig.port}")
} catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error } catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error
e.printStackTrace() e.printStackTrace()
} }