mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
fix: not starting packet queue if the interface is in monitor mode
This commit is contained in:
parent
9d69e238a0
commit
b48bb8c31c
2 changed files with 17 additions and 8 deletions
|
@ -100,6 +100,10 @@ func (t *Endpoint) CIDR() string {
|
|||
return fmt.Sprintf("%s/%d", ip.String(), t.SubnetBits)
|
||||
}
|
||||
|
||||
func (t *Endpoint) IsMonitor() bool {
|
||||
return t.IpAddress == MonitorModeAddress
|
||||
}
|
||||
|
||||
func (t *Endpoint) String() string {
|
||||
if t.HwAddress == "" {
|
||||
return t.IpAddress
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue