fix: reporting module name when it's already running or already stopped

This commit is contained in:
evilsocket 2019-03-27 13:59:22 +01:00
commit 40ec724ca6
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
20 changed files with 30 additions and 24 deletions

View file

@ -80,7 +80,7 @@ func (mod *AnyProxy) Configure() error {
var dstAddress string
if mod.Running() {
return session.ErrAlreadyStarted
return session.ErrAlreadyStarted(mod.Name())
} else if err, iface = mod.StringParam("any.proxy.iface"); err != nil {
return err
} else if err, protocol = mod.StringParam("any.proxy.protocol"); err != nil {