Просмотр исходного кода

Remove unnecessary noisy logging

Lu Stadler лет назад: 7
Родитель
Сommit
de208780b2
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      go/fake-http/fake-http.go

+ 0 - 3
go/fake-http/fake-http.go

214
	proxyTransport := &http.Transport{
214
	proxyTransport := &http.Transport{
215
		TLSClientConfig: &tls.Config{
215
		TLSClientConfig: &tls.Config{
216
			GetClientCertificate: func(info *tls.CertificateRequestInfo) (*tls.Certificate, error) {
216
			GetClientCertificate: func(info *tls.CertificateRequestInfo) (*tls.Certificate, error) {
217
				log.Printf("TLS: client cert requested: %#v", info)
218
				if flags.proxyClientCert != "" && flags.proxyClientKey != "" {
217
				if flags.proxyClientCert != "" && flags.proxyClientKey != "" {
219
					log.Printf("TLS: Loading client cert and key for proxy: %s, %s", flags.proxyClientCert, flags.proxyClientKey)
220
					cert, err := tls.LoadX509KeyPair(flags.proxyClientCert, flags.proxyClientKey)
218
					cert, err := tls.LoadX509KeyPair(flags.proxyClientCert, flags.proxyClientKey)
221
					if err != nil {
219
					if err != nil {
222
						return nil, err
220
						return nil, err
223
					}
221
					}
224
					return &cert, nil
222
					return &cert, nil
225
				}
223
				}
226
				log.Println("TLS: No client cert configured, returning empty cert")
227
				return &tls.Certificate{}, nil
224
				return &tls.Certificate{}, nil
228
			},
225
			},
229
			InsecureSkipVerify: true,
226
			InsecureSkipVerify: true,