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")
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user