Browse Source

Merge pull request #7145 from heyitsanthony/warn-ca-ignore

transport: warn on user-provided CA
Anthony Romano 9 years ago
parent
commit
34136a69c8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pkg/transport/listener.go

+ 2 - 0
pkg/transport/listener.go

@@ -23,6 +23,7 @@ import (
 	"crypto/x509/pkix"
 	"encoding/pem"
 	"fmt"
+	"log"
 	"math/big"
 	"net"
 	"os"
@@ -235,6 +236,7 @@ func (info TLSInfo) ClientConfig() (*tls.Config, error) {
 			return nil, err
 		}
 		// if given a CA, trust any host with a cert signed by the CA
+		log.Println("warning: ignoring ServerName for user-provided CA for backwards compatibility is deprecated")
 		cfg.ServerName = ""
 	}