chore: Fix linter issues
This commit is contained in:
parent
3012878c94
commit
ebdd56013d
@ -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
|
||||
}
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user