From ca22001bab64063a0b758cfc05e116af6e7e8ca9 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 29 Nov 2019 12:20:13 +0100 Subject: [PATCH] cert: add bufconn to TLS hostnames --- cert/selfsigned.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cert/selfsigned.go b/cert/selfsigned.go index e8bd5710..e428e5eb 100644 --- a/cert/selfsigned.go +++ b/cert/selfsigned.go @@ -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 {