From 85eb15dc357305342faf9f38ea2e81a4c2c237eb Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 9 Jul 2024 21:55:58 +0800 Subject: [PATCH] Also specify interface address for leaving multicast --- src/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy.rs b/src/proxy.rs index c4bbe98..a615020 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -154,7 +154,7 @@ pub(crate) fn udp( } frames.get_mut().leave_multicast_v4( *multi_addr.ip(), - Ipv4Addr::new(0, 0, 0, 0), + interface, ).ok(); info!("Udp proxy left {}", multi_addr); break;