Skip to content
Snippets Groups Projects
Commit 6a0be355 authored by deuce's avatar deuce
Browse files

If there is no password, do not require MD5 and don't encrypt.

This works around an apparent bug in binkp where it doesn't appear to
initialize the BinkD compatible crypto correctly when using an empty
password.
parent 7b0bdf89
No related branches found
No related tags found
No related merge requests found
......@@ -375,6 +375,8 @@ BinkP.prototype.connect = function(addr, password, auth_cb, port)
if (password === undefined)
password = '-';
if (password === '-')
this.require_md5 = false;
if (port === undefined)
port = 24554;
......@@ -388,7 +390,8 @@ BinkP.prototype.connect = function(addr, password, auth_cb, port)
}
this.authenticated = undefined;
this.sendCmd(this.command.M_NUL, "OPT CRYPT");
if (password !== '-')
this.sendCmd(this.command.M_NUL, "OPT CRYPT");
this.sendCmd(this.command.M_NUL, "SYS "+this.system_name);
this.sendCmd(this.command.M_NUL, "ZYZ "+this.system_operator);
this.sendCmd(this.command.M_NUL, "LOC "+this.system_location);
......
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