diff --git a/crates/lb/src/net.rs b/crates/lb/src/net.rs index aa542e4..ecdcb30 100644 --- a/crates/lb/src/net.rs +++ b/crates/lb/src/net.rs @@ -239,7 +239,7 @@ impl lb_ipaddr { } /// See [`Ipv4Addr::to_ipv6_compatible`]. - pub extern "Lua-C" fn compat_v6(&self) -> Self { + pub extern "Lua-C" fn to_v6_compat(&self) -> Self { match self.0 { IpAddr::V4(v4) => Self(v4.to_ipv6_compatible().into()), IpAddr::V6(_) => *self, @@ -247,7 +247,7 @@ impl lb_ipaddr { } /// See [`Ipv4Addr::to_ipv6_mapped`]. - pub extern "Lua-C" fn mapped_v6(&self) -> Self { + pub extern "Lua-C" fn to_v6_mapped(&self) -> Self { match self.0 { IpAddr::V4(v4) => Self(v4.to_ipv6_mapped().into()), IpAddr::V6(_) => *self,