From ad2d5752c9ed3c5fb858b65a61bb4efc48580f11 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 5 Mar 2014 15:32:59 -0800 Subject: [PATCH] consul: Peg Serf proto version to 3 --- consul/client.go | 1 + consul/server.go | 1 + 2 files changed, 2 insertions(+) diff --git a/consul/client.go b/consul/client.go index 019dac9800..e01e4943d4 100644 --- a/consul/client.go +++ b/consul/client.go @@ -109,6 +109,7 @@ func (c *Client) setupSerf(conf *serf.Config, ch chan serf.Event, path string) ( conf.LogOutput = c.config.LogOutput conf.EventCh = ch conf.SnapshotPath = filepath.Join(c.config.DataDir, path) + conf.ProtocolVersion = 3 // TODO: Support version 4 if err := ensurePath(conf.SnapshotPath, false); err != nil { return nil, err } diff --git a/consul/server.go b/consul/server.go index f1a606fb56..2b1b64a2ff 100644 --- a/consul/server.go +++ b/consul/server.go @@ -175,6 +175,7 @@ func (s *Server) setupSerf(conf *serf.Config, ch chan serf.Event, path string) ( conf.LogOutput = s.config.LogOutput conf.EventCh = ch conf.SnapshotPath = filepath.Join(s.config.DataDir, path) + conf.ProtocolVersion = 3 // TODO: Support version 4 if err := ensurePath(conf.SnapshotPath, false); err != nil { return nil, err }