mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
dfd139cab1
commit
3e8ae0339b
3 changed files with 125 additions and 81 deletions
|
@ -80,6 +80,12 @@ func NewEndpoint(ip, mac string) *Endpoint {
|
|||
return e
|
||||
}
|
||||
|
||||
func NewEndpointWithAlias(ip, mac, alias string) *Endpoint {
|
||||
e := NewEndpoint(ip, mac)
|
||||
e.Alias = alias
|
||||
return e
|
||||
}
|
||||
|
||||
func (t *Endpoint) Name() string {
|
||||
return t.Hostname
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue