add support for peer discovery over BLE

This commit is contained in:
Alex Akselrod 2023-09-21 12:34:48 -07:00
parent 9df80c0612
commit 39eba06f0c
No known key found for this signature in database
GPG key ID: 57D7612D178AA487
11 changed files with 196 additions and 12 deletions

View file

@ -55,6 +55,7 @@ object ConfigurationProxy {
json.put("AdminListen", "none")
json.put("IfName", "none")
json.put("IfMTU", 65535)
json.put("Listen", JSONArray(arrayOf("tcp://127.0.0.1:9004")))
if (json.getJSONArray("MulticastInterfaces").get(0) is String) {
var ar = JSONArray()
@ -94,4 +95,4 @@ object ConfigurationProxy {
(json.getJSONArray("MulticastInterfaces").get(0) as JSONObject).put("Beacon", value)
}
}
}
}