chore: Fix linter issues

This commit is contained in:
PapaTutuWawa committed 2024-01-01 20:07:43 +01:00
1 parent 3012878c94
commit ebdd56013d
2 files changed
+2 -4

No files matched your search

+2 -1
View File
@@ -108,7 +108,8 @@ func runServer(ctx *cli.Context) error {
addr := ctx.String("listen-host") + ":" + ctx.String("listen-port")
listener, err := net.Listen("tcp", addr)
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
}
-3
View File
@@ -146,9 +146,6 @@ func MakeTlsConfig(pagesDomain, cachePath string, cache *certificates.Certificat
cache.AddCert(cert, cachePath)
return cert.TlsCertificate, nil
}
log.Debugf("TLS ServerName: %s", info.ServerName)
return cache.FallbackCertificate.TlsCertificate, nil
},
NextProtos: []string{
"http/0.9",