Repro steps: 1. visit https://golang.org/pkg/crypto/tls/#example_Dial 2. press Run
observed: panic: failed to connect: dial tcp: Protocol not available goroutine 1 [running]: main.main() /tmp/sandbox548532523/main.go:50 +0x2e0 expected: no errors I guessed the certificate is outdated. I'm not sure if we should use https://badssl.com/ instead of mail.google.com:443 in example. I'm assuming that it would be changed less often. A bit of my context, I was looking for a way for a go client to connect to https endpoint using a certificate. I came across this example via https://stackoverflow.com/questions/12122159/golang-how-to-do-a-https-request-with-bad-certificate#. And I found that the example does not work as I expected. I visit go project in github to submit an issue and was suggested to ask in this group first <https://github.com/golang/go/blob/master/CONTRIBUTING.md>. Any comments or suggestions would be appreciated. Thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.