Fix client example
This commit is contained in:
parent
f0ce4576e1
commit
188c3457e6
|
@ -49,7 +49,7 @@ func init() {
|
||||||
// To generate a TLS key pair, run:
|
// To generate a TLS key pair, run:
|
||||||
//
|
//
|
||||||
// go run -tags=example ../cert
|
// go run -tags=example ../cert
|
||||||
var cert tls.Certificate
|
var err error
|
||||||
cert, err = tls.LoadX509KeyPair("examples/client/localhost.crt", "examples/client/localhost.key")
|
cert, err = tls.LoadX509KeyPair("examples/client/localhost.crt", "examples/client/localhost.key")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user