mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: aliases are now persistant
This commit is contained in:
parent
96e120e804
commit
e216cdde48
3 changed files with 74 additions and 4 deletions
|
@ -183,8 +183,7 @@ func (s *Session) aliasHandler(args []string, sess *Session) error {
|
|||
mac := args[0]
|
||||
alias := args[1]
|
||||
|
||||
if t, found := s.Targets.Targets[mac]; found == true {
|
||||
t.Alias = alias
|
||||
if s.Targets.SetAliasFor(mac, alias) == true {
|
||||
return nil
|
||||
} else {
|
||||
return fmt.Errorf("Could not find endpoint %s", mac)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue