This commit is contained in:
Romain Beaumont 2017-07-12 13:17:00 +02:00
parent eb5764e7ab
commit 936a12e6e0
No known key found for this signature in database
GPG Key ID: DB60E388B3BCF286

View File

@ -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