Minor change to client (supporting 1.3)

This commit is contained in:
Kenneth Shaw 2018-03-20 19:07:54 +07:00
parent 097f1903e5
commit 117d42c3dd

View File

@ -184,7 +184,7 @@ func (c *Client) newTarget(ctxt context.Context, buf []byte) (Target, error) {
return nil, err return nil, err
} }
if ver != "1.1" && ver != "1.2" { if ver != "1.1" && ver != "1.2" && ver != "1.3" {
return nil, ErrUnsupportedProtocolVersion return nil, ErrUnsupportedProtocolVersion
} }