chore: Fix linter issues

This commit is contained in:
PapaTutuWawa 2024-01-01 20:07:43 +01:00
parent 3012878c94
commit ebdd56013d
2 changed files with 2 additions and 4 deletions

View File

@ -108,7 +108,8 @@ func runServer(ctx *cli.Context) error {
addr := ctx.String("listen-host") + ":" + ctx.String("listen-port") addr := ctx.String("listen-host") + ":" + ctx.String("listen-port")
listener, err := net.Listen("tcp", addr) listener, err := net.Listen("tcp", addr)
if err != nil { if err != nil {
fmt.Errorf("Failed to create listener: %v", err) errMsg := fmt.Errorf("Failed to create listener: %v", err)
fmt.Println(errMsg.Error())
return err return err
} }

View File

@ -146,9 +146,6 @@ func MakeTlsConfig(pagesDomain, cachePath string, cache *certificates.Certificat
cache.AddCert(cert, cachePath) cache.AddCert(cert, cachePath)
return cert.TlsCertificate, nil return cert.TlsCertificate, nil
} }
log.Debugf("TLS ServerName: %s", info.ServerName)
return cache.FallbackCertificate.TlsCertificate, nil
}, },
NextProtos: []string{ NextProtos: []string{
"http/0.9", "http/0.9",