mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
misc: each module now has its own tagged logging
This commit is contained in:
parent
9003be56ca
commit
9cd4e380fb
47 changed files with 343 additions and 349 deletions
|
@ -2,7 +2,6 @@ package any_proxy
|
|||
|
||||
import (
|
||||
"github.com/bettercap/bettercap/firewall"
|
||||
"github.com/bettercap/bettercap/log"
|
||||
"github.com/bettercap/bettercap/session"
|
||||
)
|
||||
|
||||
|
@ -97,7 +96,7 @@ func (p *AnyProxy) Configure() error {
|
|||
}
|
||||
|
||||
if !p.Session.Firewall.IsForwardingEnabled() {
|
||||
log.Info("Enabling forwarding.")
|
||||
p.Info("Enabling forwarding.")
|
||||
p.Session.Firewall.EnableForwarding(true)
|
||||
}
|
||||
|
||||
|
@ -115,7 +114,7 @@ func (p *AnyProxy) Configure() error {
|
|||
return err
|
||||
}
|
||||
|
||||
log.Info("Applied redirection %s", p.Redirection.String())
|
||||
p.Info("Applied redirection %s", p.Redirection.String())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -130,7 +129,7 @@ func (p *AnyProxy) Start() error {
|
|||
|
||||
func (p *AnyProxy) Stop() error {
|
||||
if p.Redirection != nil {
|
||||
log.Info("Disabling redirection %s", p.Redirection.String())
|
||||
p.Info("Disabling redirection %s", p.Redirection.String())
|
||||
if err := p.Session.Firewall.EnableRedirection(p.Redirection, false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue