From 551fbc472726870c9ef4cd3789d2229bde31b7aa Mon Sep 17 00:00:00 2001 From: tholok Date: Tue, 3 Mar 2026 11:25:30 +0100 Subject: [PATCH] fix: open_sonar_udp_multicast_socket should bind "" --- pyproject.toml | 2 +- src/wlsonar/_udp_helper.py | 2 +- uv.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 32356d9..ca2ef8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wlsonar" -version = "0.3.0" +version = "0.3.1" description = "Python client and Range Image Protocol utilities for Water Linked Sonar 3D-15." readme = "README.md" authors = [ diff --git a/src/wlsonar/_udp_helper.py b/src/wlsonar/_udp_helper.py index 6bf0f49..1f59da4 100644 --- a/src/wlsonar/_udp_helper.py +++ b/src/wlsonar/_udp_helper.py @@ -50,7 +50,7 @@ def open_sonar_udp_multicast_socket( Returns: A socket.socket object configured to receive UDP packets from the Sonar 3D-15. """ - sock = open_sonar_udp_unicast_socket(udp_port=udp_port, iface_ip=iface_ip) + sock = open_sonar_udp_unicast_socket(udp_port=udp_port, iface_ip="") # Join multicast group on selected interface. mreq = struct.pack("=4s4s", socket.inet_aton(mcast_group), socket.inet_aton(iface_ip)) diff --git a/uv.lock b/uv.lock index 2b3cea7..c9205cd 100644 --- a/uv.lock +++ b/uv.lock @@ -732,7 +732,7 @@ wheels = [ [[package]] name = "wlsonar" -version = "0.3.0" +version = "0.3.1" source = { editable = "." } dependencies = [ { name = "protobuf" },