From 659dce0e12f68a173c821dbecbd3ce1c98cc0c46 Mon Sep 17 00:00:00 2001 From: "rui.zheng" Date: Tue, 11 Oct 2016 10:31:39 +0800 Subject: [PATCH] fix http2 init --- chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain.go b/chain.go index f591b05..244ae9f 100644 --- a/chain.go +++ b/chain.go @@ -75,7 +75,7 @@ func (c *ProxyChain) TryEnableHttp2() { // HTTP2 restrict: HTTP2 will be enabled when at least one HTTP2 proxy node is present. for i, node := range c.nodes { - if node.Transport == "http2" || node.Protocol == "http2" { + if node.Transport == "http2" { glog.V(LINFO).Infoln("HTTP2 is enabled") cfg := &tls.Config{ InsecureSkipVerify: node.insecureSkipVerify(),