Skip to content

Commit

Permalink
adjust enable probes API
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramfox” committed Dec 16, 2024
1 parent f776903 commit a133166
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions iroh-net-report/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,21 +295,21 @@ impl Options {
self
}

/// Enable icmp_v4 probe
pub fn enable_icmp_v4(mut self) -> Self {
self.icmp_v4 = true;
/// Enable or disable icmp_v4 probe
pub fn icmp_v4(mut self, enable: bool) -> Self {
self.icmp_v4 = enable;
self
}

/// Enable icmp_v6 probe
pub fn enable_icmp_v6(mut self) -> Self {
self.icmp_v6 = true;
/// Enable or disable icmp_v6 probe
pub fn icmp_v6(mut self, enable: bool) -> Self {
self.icmp_v6 = enable;
self
}

/// Enable https probe
pub fn enable_https(mut self) -> Self {
self.https = true;
/// Enable or disable https probe
pub fn https(mut self, enable: bool) -> Self {
self.https = enable;
self
}

Expand Down

0 comments on commit a133166

Please sign in to comment.