[orx-rabbit-control] Fix broken URL, improve README (#295)
This commit is contained in:
@@ -51,6 +51,7 @@ fun main() = application {
|
||||
|
||||
@ActionParameter("Action test")
|
||||
fun clicked() {
|
||||
d += 10.0
|
||||
println("Clicked from RabbitControl")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user