mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
fix: reporting module name when it's already running or already stopped
This commit is contained in:
parent
fbcaf2989f
commit
40ec724ca6
20 changed files with 30 additions and 24 deletions
|
@ -95,7 +95,7 @@ func (mod *TcpProxy) Configure() error {
|
|||
var tunnelPort int
|
||||
|
||||
if mod.Running() {
|
||||
return session.ErrAlreadyStarted
|
||||
return session.ErrAlreadyStarted(mod.Name())
|
||||
} else if err, address = mod.StringParam("tcp.address"); err != nil {
|
||||
return err
|
||||
} else if err, proxyAddress = mod.StringParam("tcp.proxy.address"); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue