mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
a14db649d3
commit
39ed078204
3 changed files with 9 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue