Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try to fix integration_success test #223

Merged
merged 1 commit into from
May 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/mdns_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,11 @@ fn my_ip_interfaces() -> Vec<Interface> {
// Use a 'bind' to check if this is a valid IPv6 addr.
{
let mut sock = std::net::SocketAddrV6::new(ifv6.ip, test_port, 0, 0);
sock.set_scope_id(i.index.unwrap_or(0));
if i.is_link_local() {
// Only link local IPv6 address requires to specify scope_id
sock.set_scope_id(i.index.unwrap_or(0));
}

match std::net::UdpSocket::bind(sock) {
Ok(_) => Some(i),
Err(e) => {
Expand Down