refact: refactored to use islazy and updated deps

This commit is contained in:
evilsocket 2018-10-10 19:00:25 +02:00
parent a2b3ee79fb
commit d070445225
238 changed files with 12662 additions and 1586 deletions

View file

@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/bettercap/bettercap/core"
"github.com/evilsocket/islazy/tui"
)
type OnHostResolvedCallback func(e *Endpoint)
@ -152,7 +152,7 @@ func (t *Endpoint) String() string {
} else if t.Hostname == "" {
return fmt.Sprintf("%s%s ( %s )", ipPart, t.HwAddress, t.Vendor)
}
return fmt.Sprintf("%s%s ( %s ) - %s", ipPart, t.HwAddress, t.Vendor, core.Bold(t.Hostname))
return fmt.Sprintf("%s%s ( %s ) - %s", ipPart, t.HwAddress, t.Vendor, tui.Bold(t.Hostname))
}
func (t *Endpoint) OnMeta(meta map[string]string) {