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
Compare Revisions
d653a6d97c48dc47819e399f91a42e26528c4ddc...d5881f9b91824d2e3435474c0ffed1a68403a20a
Commits (1)
Fix parsing of the return code.
· d5881f9b
Deucе
authored
Jun 05, 2021
This fixes an issue in TypeClass lookups (such as used by reverse())
d5881f9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
exec/load/dns.js
exec/load/dns.js
+1
-1
No files found.
exec/load/dns.js
View file @
d5881f9b
...
...
@@ -402,7 +402,7 @@ DNS.prototype.handle_response = function(sock) {
ret
.
recusrion_desired
=
!!
(
ascii
(
resp
[
2
])
&
(
1
));
ret
.
recusrion_available
=
!!
(
ascii
(
resp
[
2
])
&
(
1
<<
7
));
ret
.
reserved
=
(
ascii
(
resp
[
3
])
&
0x70
)
>>
4
;
ret
.
rcode
=
ascii
(
resp
[
3
]
&
0x0f
)
;
ret
.
rcode
=
ascii
(
resp
[
3
]
)
&
0x0f
;
queries
=
string_to_int16
(
resp
.
substr
(
4
,
2
));
answers
=
string_to_int16
(
resp
.
substr
(
6
,
2
));
...
...