Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5a88ce1

Browse files
authored
Merge pull request#269 from aanon4/dns-fixes
Fix arguments for DnsFlags.decode
2 parents7c66e9b +666e8b0 commit5a88ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎decode/dns.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ DNS.prototype.decode = function (raw_packet, offset) {
9797
this.offset=offset;
9898

9999
this.id=raw_packet.readUInt16BE(offset);// 0, 1
100-
this.header=newDnsFlags().decode(raw_packet.readUInt16BE(this.offset+2));
100+
this.header=newDnsFlags().decode(raw_packet,offset+2);
101101
this.qdcount=raw_packet.readUInt16BE(offset+4);// 4, 5
102102
this.ancount=raw_packet.readUInt16BE(offset+6);// 6, 7
103103
this.nscount=raw_packet.readUInt16BE(offset+8);// 8, 9

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp