misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-03-28 19:49:46 +02:00
parent a14db649d3
commit 39ed078204
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 9 additions and 18 deletions

View file

@ -8,10 +8,6 @@ import (
"github.com/bettercap/bettercap/session"
)
var (
notSupported = errors.New("packet.proxy is not supported on this OS")
)
type PacketProxy struct {
session.SessionModule
}
@ -35,13 +31,13 @@ func (pp PacketProxy) Author() string {
}
func (pp *PacketProxy) Configure() (err error) {
return notSupported
return session.ErrNotSupported
}
func (pp *PacketProxy) Start() error {
return notSupported
return session.ErrNotSupported
}
func (pp *PacketProxy) Stop() error {
return notSupported
return session.ErrNotSupported
}