cert: add bufconn to TLS hostnames

This commit is contained in:
Johan T. Halseth 2019-11-29 12:20:13 +01:00
parent 27337dc973
commit ca22001bab
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

View File

@ -109,6 +109,10 @@ func GenCertPair(org, certFile, keyFile string, tlsExtraIPs,
// verification will fail in the client.
dnsNames = append(dnsNames, "unix", "unixpacket")
// Also add hostnames for 'bufconn' which is the hostname used for the
// in-memory connections used on mobile.
dnsNames = append(dnsNames, "bufconn")
// Generate a private key for the certificate.
priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
if err != nil {