mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 15:46:59 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -87,7 +87,7 @@ func (p *HttpsProxy) Configure() error {
|
|||
var keyFile string
|
||||
var stripSSL bool
|
||||
|
||||
if p.Running() == true {
|
||||
if p.Running() {
|
||||
return session.ErrAlreadyStarted
|
||||
} else if err, address = p.StringParam("https.proxy.address"); err != nil {
|
||||
return err
|
||||
|
@ -109,7 +109,7 @@ func (p *HttpsProxy) Configure() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if core.Exists(certFile) == false || core.Exists(keyFile) == false {
|
||||
if !core.Exists(certFile) || !core.Exists(keyFile) {
|
||||
log.Info("Generating proxy certification authority TLS key to %s", keyFile)
|
||||
log.Info("Generating proxy certification authority TLS certificate to %s", certFile)
|
||||
if err := tls.Generate(certFile, keyFile); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue