[orx-rabbit-control] Fix broken URL, improve README (#295)

This commit is contained in:
Abe Pazos
2023-03-13 19:12:52 +01:00
committed by GitHub
parent 1fc2bdf699
commit cfad09d255
3 changed files with 30 additions and 8 deletions

View File

@@ -51,6 +51,7 @@ fun main() = application {
@ActionParameter("Action test")
fun clicked() {
d += 10.0
println("Clicked from RabbitControl")
}
}

View File

@@ -101,7 +101,7 @@ class RabbitControlServer(private val showQRUntilClientConnects: Boolean = true,
val socket = Socket()
socket.connect(InetSocketAddress("google.com", 80))
val ip = socket.localAddress.toString().replace("/", "")
val clientUrlWithHash = "http://$ip:$staticFilesPort/rabbit-client/index.html/#$ip:$rcpPort"
val clientUrlWithHash = "http://$ip:$staticFilesPort/rabbit-client/index.html#$ip:$rcpPort"
qrCodeImage = getQRCodeImage(barcodeText = clientUrlWithHash)
println("RabbitControl Web Client: $clientUrlWithHash")