From d1ebf83e3979e0362ff70f9e0d20c6e369f4a81c Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 27 May 2014 15:45:30 -0700 Subject: [PATCH] consul: Add new protocol version for yamux --- consul/config.go | 1 + consul/server.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/consul/config.go b/consul/config.go index 1f8f1621d6..d75f229f1c 100644 --- a/consul/config.go +++ b/consul/config.go @@ -33,6 +33,7 @@ var protocolVersionMap map[uint8]uint8 func init() { protocolVersionMap = map[uint8]uint8{ 1: 4, + 2: 4, } } diff --git a/consul/server.go b/consul/server.go index 6b1603dd65..6616843628 100644 --- a/consul/server.go +++ b/consul/server.go @@ -22,7 +22,7 @@ import ( // protocol versions. const ( ProtocolVersionMin uint8 = 1 - ProtocolVersionMax = 1 + ProtocolVersionMax = 2 ) const (