more lint driven refactoring

This commit is contained in:
evilsocket 2018-04-24 18:26:16 +02:00
commit 0de6f3a76e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
57 changed files with 168 additions and 241 deletions

View file

@ -83,7 +83,7 @@ func (p *TcpProxy) Configure() error {
var proxyAddress string
var scriptPath string
if p.Running() == true {
if p.Running() {
return session.ErrAlreadyStarted
} else if err, address = p.StringParam("tcp.address"); err != nil {
return err
@ -111,7 +111,7 @@ func (p *TcpProxy) Configure() error {
}
}
if p.Session.Firewall.IsForwardingEnabled() == false {
if !p.Session.Firewall.IsForwardingEnabled() {
log.Info("Enabling forwarding.")
p.Session.Firewall.EnableForwarding(true)
}