mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: allow wifi modules to use network aliases for clients never seen on lan
This commit is contained in:
parent
d6e6746809
commit
255102c250
5 changed files with 15 additions and 10 deletions
|
@ -68,8 +68,8 @@ func (lan *LAN) SetAliasFor(mac, alias string) bool {
|
|||
defer lan.Unlock()
|
||||
|
||||
mac = NormalizeMac(mac)
|
||||
lan.aliases.Set(mac, alias)
|
||||
if e, found := lan.hosts[mac]; found {
|
||||
lan.aliases.Set(mac, alias)
|
||||
e.Alias = alias
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue