mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
tls: fix CertConfigFromModule() return order
This commit is contained in:
parent
7d7ab1937e
commit
372c2d6428
4 changed files with 11 additions and 11 deletions
|
@ -129,7 +129,7 @@ func (mod *HttpsServer) Configure() error {
|
|||
}
|
||||
|
||||
if !fs.Exists(certFile) || !fs.Exists(keyFile) {
|
||||
err, cfg := tls.CertConfigFromModule("https.server", mod.SessionModule)
|
||||
cfg, err := tls.CertConfigFromModule("https.server", mod.SessionModule)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue