소스 검색

pkg/transport: Obey the usual laws of ssl when using a private PKI

Laurie Clark-Michalek 10 년 전
부모
커밋
eba41cd7b3
1개의 변경된 파일과 0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      pkg/transport/listener.go

+ 0 - 4
pkg/transport/listener.go

@@ -23,7 +23,6 @@ import (
 	"crypto/x509/pkix"
 	"encoding/pem"
 	"fmt"
-	"log"
 	"math/big"
 	"net"
 	"os"
@@ -235,9 +234,6 @@ func (info TLSInfo) ClientConfig() (*tls.Config, error) {
 		if err != nil {
 			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 = ""
 	}
 
 	if info.selfCert {