From cc5e7f7c581696b93d4bf3faff18771e709ddd20 Mon Sep 17 00:00:00 2001 From: "minecraftchest1@outlook.com" Date: Wed, 19 Feb 2025 15:39:41 -0600 Subject: [PATCH] v1.6.3: Make TXT class generate a TXT record. TXT class was generating a CNAME, not a TXT record. --- Doxyfile | 2 +- pyproject.toml | 2 +- src/dnscode/dnscode.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Doxyfile b/Doxyfile index b14cb74..068b785 100644 --- a/Doxyfile +++ b/Doxyfile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index d446ca8..e39d550 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }, ] diff --git a/src/dnscode/dnscode.py b/src/dnscode/dnscode.py index 75da42b..3acd094 100644 --- a/src/dnscode/dnscode.py +++ b/src/dnscode/dnscode.py @@ -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