Skip to content

Commit 491f63f

Browse files
0xinf0claude
andcommitted
Fix DNS PSF syntax error - use parentheses instead of brackets
The PSF parser expects FIXED_BYTES(...) with parentheses, not square brackets. This was causing "Expected LeftParen, got LeftBracket" errors when loading the DNS protocol. Fixed in protocols/dns/dns.psf: - Line 77: FIXED_BYTES[...] → FIXED_BYTES(...) - Line 89: FIXED_BYTES[...] → FIXED_BYTES(...) This allows the DNS protocol to work on port 53 for DNS-based censorship circumvention. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2c2a5a1 commit 491f63f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/nooshdaroo

2.05 KB
Binary file not shown.

protocols/dns/dns.psf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{ FORMAT: DnsHandshakeQuery; FIELD: authority; SEMANTIC: FIXED_VALUE(0x0000) };
7575
{ FORMAT: DnsHandshakeQuery; FIELD: additional; SEMANTIC: FIXED_VALUE(0x0000) };
7676
{ FORMAT: DnsHandshakeQuery; FIELD: qname_len; SEMANTIC: LENGTH };
77-
{ FORMAT: DnsHandshakeQuery; FIELD: qname; SEMANTIC: FIXED_BYTES[0x06, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00] };
77+
{ FORMAT: DnsHandshakeQuery; FIELD: qname; SEMANTIC: FIXED_BYTES(0x06, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00) };
7878
{ FORMAT: DnsHandshakeQuery; FIELD: qtype; SEMANTIC: FIXED_VALUE(0x0001) };
7979
{ FORMAT: DnsHandshakeQuery; FIELD: qclass; SEMANTIC: FIXED_VALUE(0x0001) };
8080

@@ -86,7 +86,7 @@
8686
{ FORMAT: DnsHandshakeResponse; FIELD: authority; SEMANTIC: FIXED_VALUE(0x0000) };
8787
{ FORMAT: DnsHandshakeResponse; FIELD: additional; SEMANTIC: FIXED_VALUE(0x0000) };
8888
{ FORMAT: DnsHandshakeResponse; FIELD: qname_len; SEMANTIC: LENGTH };
89-
{ FORMAT: DnsHandshakeResponse; FIELD: qname; SEMANTIC: FIXED_BYTES[0x06, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00] };
89+
{ FORMAT: DnsHandshakeResponse; FIELD: qname; SEMANTIC: FIXED_BYTES(0x06, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00) };
9090
{ FORMAT: DnsHandshakeResponse; FIELD: qtype; SEMANTIC: FIXED_VALUE(0x0001) };
9191
{ FORMAT: DnsHandshakeResponse; FIELD: qclass; SEMANTIC: FIXED_VALUE(0x0001) };
9292
{ FORMAT: DnsHandshakeResponse; FIELD: rdlength; SEMANTIC: LENGTH };

0 commit comments

Comments
 (0)