Skip to content

Commit

Permalink
Changed config name
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Oct 15, 2024
1 parent 612fdc2 commit 90fcd53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mirrord/config/src/experimental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ pub struct ExperimentalConfig {
#[config(default = true)]
pub enable_exec_hooks_linux: bool,

/// ### _experimental_ remove_ipv6_interfaces {#experimental-remove_ipv6_interfaces}
/// ### _experimental_ hide_ipv6_interfaces {#experimental-hide_ipv6_interfaces}
///
/// Enables `getifaddrs` hook that removes IPv6 interfaces from the list returned by libc.
#[config(default = false)]
pub remove_ipv6_interfaces: bool,
pub hide_ipv6_interfaces: bool,
}

impl CollectAnalytics for &ExperimentalConfig {
Expand All @@ -50,6 +50,6 @@ impl CollectAnalytics for &ExperimentalConfig {
analytics.add("readlink", self.readlink);
analytics.add("trust_any_certificate", self.trust_any_certificate);
analytics.add("enable_exec_hooks_linux", self.enable_exec_hooks_linux);
analytics.add("remove_ipv6_interfaces", self.remove_ipv6_interfaces);
analytics.add("hide_ipv6_interfaces", self.hide_ipv6_interfaces);
}
}
2 changes: 1 addition & 1 deletion mirrord/layer/src/socket/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ pub(crate) unsafe fn enable_socket_hooks(
);
}

if experimental.remove_ipv6_interfaces {
if experimental.hide_ipv6_interfaces {
replace!(
hook_manager,
"getifaddrs",
Expand Down

0 comments on commit 90fcd53

Please sign in to comment.