fix: not starting packet queue if the interface is in monitor mode

This commit is contained in:
evilsocket 2018-02-20 18:23:58 +01:00
commit b48bb8c31c
2 changed files with 17 additions and 8 deletions

View file

@ -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