From 936a12e6e019e6195a19fe3b618542f1e0bf78a0 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Wed, 12 Jul 2017 13:17:00 +0200 Subject: [PATCH] fix ping --- src/ping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ping.js b/src/ping.js index 1a3f7a6..50232aa 100644 --- a/src/ping.js +++ b/src/ping.js @@ -40,7 +40,7 @@ function ping(options, cb) { // TODO: refactor with src/client/setProtocol.js client.on('connect', function() { client.write('set_protocol', { - protocolVersion: -1, + protocolVersion: options.protocolVersion, serverHost: options.host, serverPort: options.port, nextState: 1