mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
common/helpers: rename NetIPTo6 to AddrTo6
This commit is contained in:
@@ -176,7 +176,7 @@ func ParseEthernet(sch *schema.Component, bf *schema.FlowMessage, data []byte) u
|
||||
// DecodeIP decodes an IP address
|
||||
func DecodeIP(b []byte) netip.Addr {
|
||||
if ip, ok := netip.AddrFromSlice(b); ok {
|
||||
return helpers.NetIPTo6(ip)
|
||||
return helpers.AddrTo6(ip)
|
||||
}
|
||||
return netip.Addr{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user