Skip to content

Commit

Permalink
etcdmain: support peer-auto-tls and auto-tls for v2 proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Jul 18, 2017
1 parent 23ae252 commit 9ca8572
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etcdmain/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ func startProxy(cfg *config) error {
// for both client and peer connections.
clientTLSInfo = cfg.PeerTLSInfo
}
clientTLSInfo.InsecureSkipVerify = cfg.ClientAutoTLS
cfg.PeerTLSInfo.InsecureSkipVerify = cfg.PeerAutoTLS

pt, err := transport.NewTimeoutTransport(clientTLSInfo, time.Duration(cfg.ProxyDialTimeoutMs)*time.Millisecond, time.Duration(cfg.ProxyReadTimeoutMs)*time.Millisecond, time.Duration(cfg.ProxyWriteTimeoutMs)*time.Millisecond)
if err != nil {
Expand Down

0 comments on commit 9ca8572

Please sign in to comment.