From 4162f62ae67fde6887e8fdd375c8b650bbdae8f6 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Thu, 23 Jun 2022 23:14:57 -0600 Subject: [PATCH] Change the error message from host to bind --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 6b86428..ccae551 100644 --- a/src/config.rs +++ b/src/config.rs @@ -236,8 +236,8 @@ impl Config { .with_context(|| "Invalid endpoint address")?; let endpoint_bind_addr = if let Some(addr) = matches.value_of("endpoint-bind-addr") { - let addr = parse_addr(Some(addr)).with_context(|| "Invalid host address")?; - // Make sure the host address and endpoint address are the same IP version + let addr = parse_addr(Some(addr)).with_context(|| "Invalid bind address")?; + // Make sure the bind address and endpoint address are the same IP version if addr.ip().is_ipv4() != endpoint_addr.ip().is_ipv4() { return Err(anyhow::anyhow!( "Endpoint and bind addresses must be the same IP version"