mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
Some error.
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
parent
a96c44aa3b
commit
6e96ddd470
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue