Skip to content

Commit

Permalink
i hate java
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed May 8, 2024
1 parent 1b824ed commit 520c034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirrord/layer/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl OutgoingFilterExt for OutgoingFilter {
fn is_ignored_port(addr: &SocketAddr) -> bool {
let (ip, port) = (addr.ip(), addr.port());
let ignored_ip = ip == IpAddr::V4(Ipv4Addr::LOCALHOST) || ip == IpAddr::V6(Ipv6Addr::LOCALHOST);
port == 0 || ignored_ip && (port > 50000 && port < 60000)
ignored_ip && (port > 50000 && port < 60000)
}

/// Fill in the sockaddr structure for the given address.
Expand Down

0 comments on commit 520c034

Please sign in to comment.