Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
f3d849a0
Commit
f3d849a0
authored
Mar 15, 2018
by
deuce
Browse files
We need to send M_NUL "OPT TLS" before M_NUL "OPT CRYPT".
parent
6c35737e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
exec/load/binkp.js
exec/load/binkp.js
+5
-5
No files found.
exec/load/binkp.js
View file @
f3d849a0
...
...
@@ -406,8 +406,12 @@ BinkP.prototype.connect = function(addr, password, auth_cb, port, inet_host)
return
false
;
}
/* Check if the first remote comand is an M_NUL "OPT TLS" */
pkt
=
this
.
recvFrame
(
this
.
timeout
);
if
(
pkt
===
undefined
)
return
false
;
this
.
authenticated
=
undefined
;
if
(
password
!==
'
-
'
)
if
(
password
!==
'
-
'
&&
!
this
.
will_tls
)
this
.
sendCmd
(
this
.
command
.
M_NUL
,
"
OPT CRYPT
"
);
else
{
/*
...
...
@@ -421,10 +425,6 @@ BinkP.prototype.connect = function(addr, password, auth_cb, port, inet_host)
this
.
wont_crypt
=
true
;
this
.
require_crypt
=
false
;
}
/* Check if the first remote comand is an M_NUL "OPT TLS" */
pkt
=
this
.
recvFrame
(
this
.
timeout
);
if
(
pkt
===
undefined
)
return
false
;
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment