Rename some ipaddr methods
This commit is contained in:
parent
2352cb0225
commit
69ac13ea47
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user