diff options
Diffstat (limited to 'src/model.rs')
-rw-r--r-- | src/model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model.rs b/src/model.rs index 8ae4f6a..f0e1a7a 100644 --- a/src/model.rs +++ b/src/model.rs @@ -127,7 +127,7 @@ impl FromStr for Endpoint { fn from_str(s: &str) -> Result<Self, NetParseError> { use std::net; net::SocketAddr::from_str(s) - .map_err(|_| NetParseError) + .map_err(|_| NetParseError::BadAddress) .map(|v| Self { address: match v.ip() { net::IpAddr::V4(a) => a.to_ipv6_mapped(), |