Skip to content

Commit

Permalink
fix #4; regression introduced by nim-lang/Nim#24640
Browse files Browse the repository at this point in the history
  • Loading branch information
rockcavera committed Feb 6, 2025
1 parent d2abbe7 commit 086da57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dnsprotocol/rdatatypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type

# RDatas specified in RFC-8659 (https://tools.ietf.org/html/rfc8659)

CAAFlags* {.size: 1.} = object # /!\ I need to review! /!\ bitsize is buggy with mm refc and async
CAAFlags* = object # /!\ I need to review! /!\ bitsize is buggy with mm refc and async
when system.cpuEndian == bigEndian:
issuerCritical* {.bitsize:1.}: bool ## Issuer Critical Flag: If the value is set to "1", the Property is critical. A CA MUST NOT issue certificates for any FQDN if the Relevant RRset for that FQDN contains a CAA critical Property for an unknown or unsupported Property Tag.
reserved* {.bitsize:7.}: uint8 ## Reserved for future use.
Expand Down
2 changes: 1 addition & 1 deletion src/dnsprotocol/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type
rcode*: RCode ## Response code - this 4 bit field is set as part of responses.

#[ https://github.com/nim-lang/Nim/issues/16313
Flags* {.size: 2.} = object
Flags* = object
when system.cpuEndian == bigEndian:
qr* {.bitsize:1.}: QR ## A one bit field that specifies whether this message is a query (0), or a response (1).
opcode* {.bitsize:4.}: OpCode ## A four bit field that specifies kind of query in this message. This value is set by the originator of a query and copied into the response.
Expand Down

0 comments on commit 086da57

Please sign in to comment.