From f16ea39889c0fd65f3e533cf40cc3a0a33ac1c33 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 3 Nov 2026 06:02:47 +0100 Subject: Let a user pick their cluster's own multicast group --- tests/integration/harness.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/integration/harness.py') diff --git a/tests/integration/harness.py b/tests/integration/harness.py index a9d38ca..10aa6de 100644 --- a/tests/integration/harness.py +++ b/tests/integration/harness.py @@ -192,7 +192,7 @@ class Tracker: def torrent_count(self): return int(self.stats("torr").split()[0]) - def livesync_send(self, payload): + def livesync_send(self, payload, group=LIVESYNC_GROUP): """Put a packet on the live sync group. It has to go to the group rather than straight at the port: the @@ -204,7 +204,7 @@ class Tracker: sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton("127.0.0.1")) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_LOOP, 1) sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 1) - sock.sendto(payload, (LIVESYNC_GROUP, self.livesync_port)) + sock.sendto(payload, (group, self.livesync_port)) finally: sock.close() -- cgit v1.3