From 65294c7f54f42cbc6c6715b9152847dcb4f6b443 Mon Sep 17 00:00:00 2001 From: Damien Albisson Date: Tue, 21 May 2024 15:42:00 +0200 Subject: [PATCH] use the address of the message received --- lib/data/utils.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/utils.dart b/lib/data/utils.dart index 3367d74..3d82cd4 100644 --- a/lib/data/utils.dart +++ b/lib/data/utils.dart @@ -315,7 +315,7 @@ Future> platformDiscovery() async { if (platformName != null && brokerAddr != null && brokerPort != null) { // Get addr, port and platform name // if (!ipPort.contains((datagram.address, datagram.port, platformName))) ipPort.add((datagram.address, datagram.port, platformName)); - if (!ipPort.contains((brokerAddr, brokerPort, platformName))) ipPort.add((brokerAddr, brokerPort, platformName)); + if (!ipPort.contains((datagram.address.address, brokerPort, platformName))) ipPort.add((datagram.address.address, brokerPort, platformName)); } }