From f145881e936104eb145267121d9725ec8ba9e483 Mon Sep 17 00:00:00 2001 From: Charles Toller Date: Tue, 26 May 2020 18:33:26 -0600 Subject: [PATCH] Rename addr to address in Android Dart expects it to be this value in order to parse out the IP/port combinations. --- .../src/main/kotlin/com/mutablelogic/mdns_plugin/MDNSPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdns_plugin/android/src/main/kotlin/com/mutablelogic/mdns_plugin/MDNSPlugin.kt b/mdns_plugin/android/src/main/kotlin/com/mutablelogic/mdns_plugin/MDNSPlugin.kt index 471e84b..a82a508 100644 --- a/mdns_plugin/android/src/main/kotlin/com/mutablelogic/mdns_plugin/MDNSPlugin.kt +++ b/mdns_plugin/android/src/main/kotlin/com/mutablelogic/mdns_plugin/MDNSPlugin.kt @@ -41,7 +41,7 @@ class MDNSPlugin : MethodCallHandler,StreamHandler { val addr = serviceInfo.getHost()?.getHostAddress() addr?.let { - map["addr"] = listOf(addr,serviceInfo.getPort()) + map["address"] = listOf(listOf(addr,serviceInfo.getPort())) } } return map