client ping fixed

This commit is contained in:
Xabier de Zuazo 2013-07-07 20:25:59 +02:00
parent e46fd6f1c7
commit c9a081fd6a
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ function ping(options, cb) {
unused1: 1,
customPayloadId: 250,
magicText: "MC|PingHost",
len: 3 + ip.length + 4,
len: 3 + host.length + 4,
magic: 73,
ip: host,
port: port,

View file

@ -481,7 +481,7 @@ var packets = {
],
0xfe: [
{ name: "unused1", type: "byte" },
{ name: "customPayloadId", type: "byte" },
{ name: "customPayloadId", type: "ubyte" },
{ name: "magicText", type: "string" },
{ name: "len", type: "short" },
{ name: "magic", type: "byte" },