v1.6.3: Make TXT class generate a TXT record.
Some checks failed
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/package-deploy Pipeline was successful
ci/woodpecker/tag/docs Pipeline failed
ci/woodpecker/tag/package-deploy Pipeline was successful

TXT class was generating a CNAME, not a TXT record.
This commit is contained in:
minecraftchest1@outlook.com 2025-02-19 15:39:41 -06:00
parent 3069ba6357
commit cc5e7f7c58
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ PROJECT_NAME = DNScode
# could be handy for archiving the generated documentation or if some version
# control system is used.
PROJECT_NUMBER = 1.6.2
PROJECT_NUMBER = 1.6.3
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "dnscode"
version = "1.6.2"
version = "1.6.3"
authors = [
{ name="Minecraftchest1", email="me@minec1.us" },
]

View file

@ -185,7 +185,7 @@ class TXT(Record):
#target: str
def __init__(self, name: str = '@', ttl: int = 3600, text: str = 'example.com'):
self.rtype = 'CNAME'
self.rtype = 'TXT'
self.name = str(name)
self.ttl = ttl
self.data = text