mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: grabbing meta info from mDNS TXT records
This commit is contained in:
parent
3789b21ba1
commit
798df7e32f
4 changed files with 51 additions and 8 deletions
|
@ -89,10 +89,11 @@ func (d *Discovery) getRow(e *network.Endpoint, withMeta bool) []string {
|
|||
if withMeta {
|
||||
metas := []string{}
|
||||
e.Meta.Each(func(name string, value interface{}) {
|
||||
metas = append(metas, fmt.Sprintf("%s: %s", name, value.(string)))
|
||||
metas = append(metas, fmt.Sprintf("%s=%s", core.Bold(name), core.Yellow(value.(string))))
|
||||
})
|
||||
|
||||
row = append(row, strings.Join(metas, "\n"))
|
||||
sort.Strings(metas)
|
||||
row = append(row, strings.Join(metas, ", "))
|
||||
}
|
||||
|
||||
return row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue