diff --git a/modules/net_sniff/net_sniff_views.go b/modules/net_sniff/net_sniff_views.go index 5457c531..57b81bee 100644 --- a/modules/net_sniff/net_sniff_views.go +++ b/modules/net_sniff/net_sniff_views.go @@ -31,11 +31,11 @@ func vIP(ip net.IP) string { func vPort(p interface{}) string { sp := fmt.Sprintf("%d", p) if tcp, ok := p.(layers.TCPPort); ok { - if name, found := layers.TCPPortNames[tcp]; found { + if name, found := layers.TCPPortNames(tcp); found { sp = tui.Yellow(name) } } else if udp, ok := p.(layers.UDPPort); ok { - if name, found := layers.UDPPortNames[udp]; found { + if name, found := layers.UDPPortNames(udp); found { sp = tui.Yellow(name) } }