mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-15 02:51:25 +00:00
protocols/mdns: Support multiple network interfaces (#2383)
Handling multiple interfaces in mdns. The socket logic was moved into an instance while the mdns behaviour watches for interface changes and creates new instances with a dedicated send/recv socket. Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -705,9 +705,18 @@ where
|
||||
handler,
|
||||
}) => {
|
||||
if let Some(error) = error.as_ref() {
|
||||
log::debug!("Connection {:?} closed: {:?}", connected, error);
|
||||
log::debug!(
|
||||
"Connection closed with error {:?}: {:?}; Total (peer): {}.",
|
||||
error,
|
||||
connected,
|
||||
remaining_established_connection_ids.len()
|
||||
);
|
||||
} else {
|
||||
log::debug!("Connection {:?} closed (active close).", connected);
|
||||
log::debug!(
|
||||
"Connection closed: {:?}; Total (peer): {}.",
|
||||
connected,
|
||||
remaining_established_connection_ids.len()
|
||||
);
|
||||
}
|
||||
let peer_id = connected.peer_id;
|
||||
let endpoint = connected.endpoint;
|
||||
|
Reference in New Issue
Block a user