Commit 8de268f9 authored by mercury233's avatar mercury233

fix

parent 39c78a4e
...@@ -686,8 +686,8 @@ net.createServer (client) -> ...@@ -686,8 +686,8 @@ net.createServer (client) ->
ctos_buffer = ctos_buffer.slice(2 + ctos_message_length) ctos_buffer = ctos_buffer.slice(2 + ctos_message_length)
ctos_message_length = 0 ctos_message_length = 0
ctos_proto = 0 ctos_proto = 0
else if ctos_message_length != 17735 else
log.warn("bad ctos_message length", client.ip, ctos_buffer.length, ctos_message_length, ctos_proto) log.warn("bad ctos_message length", client.ip, ctos_buffer.length, ctos_message_length, ctos_proto) if ctos_message_length != 17735
break break
looplimit++ looplimit++
......
...@@ -872,8 +872,10 @@ ...@@ -872,8 +872,10 @@
ctos_buffer = ctos_buffer.slice(2 + ctos_message_length); ctos_buffer = ctos_buffer.slice(2 + ctos_message_length);
ctos_message_length = 0; ctos_message_length = 0;
ctos_proto = 0; ctos_proto = 0;
} else if (ctos_message_length !== 17735) { } else {
log.warn("bad ctos_message length", client.ip, ctos_buffer.length, ctos_message_length, ctos_proto); if (ctos_message_length !== 17735) {
log.warn("bad ctos_message length", client.ip, ctos_buffer.length, ctos_message_length, ctos_proto);
}
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment