mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-12 16:59:08 +01:00
open the right ip
This commit is contained in:
parent
e2c4b4cb57
commit
8e61632155
@ -18,8 +18,9 @@ import ir.armor.tachidesk.server.serverConfig
|
|||||||
import ir.armor.tachidesk.server.util.ExitCode.Success
|
import ir.armor.tachidesk.server.util.ExitCode.Success
|
||||||
|
|
||||||
fun openInBrowser() {
|
fun openInBrowser() {
|
||||||
|
val appIP = if (serverConfig.ip == "0.0.0.0") "127.0.0.1" else serverConfig.ip
|
||||||
try {
|
try {
|
||||||
Desktop.browseURL("http://${serverConfig.ip}:${serverConfig.port}")
|
Desktop.browseURL("http://${appIP}:${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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user