Skip to content
Snippets Groups Projects
Commit ee0e8e0a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Log warning when peer does not indicate binkp/1.1 correctly, but

we assume it's 1.1 anyway.
parent edf5a1f9
No related branches found
No related tags found
No related merge requests found
......@@ -1215,6 +1215,9 @@ BinkP.prototype.recvFrame = function(timeout)
this.remote_ver = m[1];
log(LOG_INFO, "Peer version: " + this.remote_ver);
binkp_ver = parseFloat(m[2].substr(m[2].indexOf('binkp/') + 6));
if (m[2] !== 'binkp/1.1' && binkp_ver > 1.0) {
log(LOG_WARNING, 'Peer ended their VER with " '+m[2]+'" instead of the required " binkp/1.1", but we\'re assuming binkp 1.1 anyway');
}
log(LOG_DEBUG, "Parsed BinkP version: " + binkp_ver);
this.ver_1_1 = binkp_ver >= 1.1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment