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

Update default from addr to 0.0.0.0:0 #48

Merged
merged 1 commit into from
May 3, 2023
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: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub use self::metrics::{ServiceCheckOptions, ServiceStatus};
/// A type alias for returning a unit type or an error
pub type DogstatsdResult = Result<(), DogstatsdError>;

const DEFAULT_FROM_ADDR: &str = "127.0.0.1:0";
const DEFAULT_FROM_ADDR: &str = "0.0.0.0:0";
const DEFAULT_TO_ADDR: &str = "127.0.0.1:8125";

/// The struct that represents the options available for the Dogstatsd client.
Expand Down Expand Up @@ -125,7 +125,7 @@ impl Default for Options {
///
/// assert_eq!(
/// Options {
/// from_addr: "127.0.0.1:0".into(),
/// from_addr: "0.0.0.0:0".into(),
/// to_addr: "127.0.0.1:8125".into(),
/// namespace: String::new(),
/// default_tags: vec!()
Expand Down Expand Up @@ -258,7 +258,7 @@ impl OptionsBuilder {
///
/// assert_eq!(
/// Options {
/// from_addr: "127.0.0.1:0".into(),
/// from_addr: "0.0.0.0:0".into(),
/// to_addr: "127.0.0.1:8125".into(),
/// namespace: String::from("mynamespace"),
/// default_tags: vec!(String::from("tag1:tav1val"))
Expand Down