From 64bc7be39b88c37e93c6a6aecebabb4784e10412 Mon Sep 17 00:00:00 2001 From: "minecraftchest1@outlook.com" Date: Wed, 19 Feb 2025 13:45:06 -0600 Subject: [PATCH] v1.6.1: Fix SRV class. --- ...lassdnscode_1_1dnscode_1_1SRV-members.html | 14 +++---- docs/html/classdnscode_1_1dnscode_1_1SRV.html | 38 +++++++++---------- docs/html/classdnscode_1_1dnscode_1_1SRV.js | 2 +- docs/html/doxygen_crawl.html | 2 +- docs/html/functions.html | 3 +- docs/html/functions_vars.html | 3 +- docs/html/navtreeindex0.js | 28 +++++++------- docs/html/search/all_5.js | 2 +- docs/html/search/all_d.js | 5 +-- docs/html/search/variables_2.js | 2 +- docs/html/search/variables_9.js | 3 +- pyproject.toml | 2 +- src/dnscode/dnscode.py | 4 +- 13 files changed, 52 insertions(+), 56 deletions(-) diff --git a/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html b/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html index 76b9a61..0606a39 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html +++ b/docs/html/classdnscode_1_1dnscode_1_1SRV-members.html @@ -107,13 +107,13 @@ $(function(){initNavTree('classdnscode_1_1dnscode_1_1SRV.html',''); initResizabl - - - - - - - + + + + + + +
__init__(self, str name='@', int ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str host='example.com')dnscode.dnscode.SRV
datadnscode.dnscode.SRV
namednscode.dnscode.SRV
portdnscode.dnscode.SRV
prioritydnscode.dnscode.SRV
protocoldnscode.dnscode.SRV
rtypednscode.dnscode.SRV
servicednscode.dnscode.SRV
targetdnscode.dnscode.SRV
hostdnscode.dnscode.SRV
namednscode.dnscode.SRV
portdnscode.dnscode.SRV
prioritydnscode.dnscode.SRV
protocoldnscode.dnscode.SRV
rtypednscode.dnscode.SRV
servicednscode.dnscode.SRV
ttldnscode.dnscode.SRV
weightdnscode.dnscode.SRV
diff --git a/docs/html/classdnscode_1_1dnscode_1_1SRV.html b/docs/html/classdnscode_1_1dnscode_1_1SRV.html index 073d036..64d4cf3 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SRV.html +++ b/docs/html/classdnscode_1_1dnscode_1_1SRV.html @@ -118,7 +118,7 @@ Inheritance diagram for dnscode.dnscode.SRV: - + @@ -142,9 +142,9 @@ Public Attributes - - - + + +

Public Member Functions

 __init__ (self, str name='@', int ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str host='example.com')
 __init__ (self, str name='@', int ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str host='example.com')
 
- Public Member Functions inherited from dnscode.dnscode.Record
 __str__ (self)
 
 port = port
 
 target = target
 
str data = f"{self.priority} {self.weight} {self.port} {self.target}"
 host = host
 
str data = f"{self.priority} {self.weight} {self.port} {self.host}"
 

@@ -227,7 +227,21 @@ Additional Inherited Members

- + + +
str dnscode.dnscode.SRV.data = f"{self.priority} {self.weight} {self.port} {self.target}"str dnscode.dnscode.SRV.data = f"{self.priority} {self.weight} {self.port} {self.host}"
+
+ +
+ + +

◆ host

+ +
+
+ + +
dnscode.dnscode.SRV.host = host
@@ -316,20 +330,6 @@ Additional Inherited Members
-
-
- -

◆ target

- -
-
- - - - -
dnscode.dnscode.SRV.target = target
-
-
diff --git a/docs/html/classdnscode_1_1dnscode_1_1SRV.js b/docs/html/classdnscode_1_1dnscode_1_1SRV.js index a61d605..2b69731 100644 --- a/docs/html/classdnscode_1_1dnscode_1_1SRV.js +++ b/docs/html/classdnscode_1_1dnscode_1_1SRV.js @@ -2,13 +2,13 @@ var classdnscode_1_1dnscode_1_1SRV = [ [ "__init__", "classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e", null ], [ "data", "classdnscode_1_1dnscode_1_1SRV.html#aa6f868660e840b7dbc3252c234e37a7b", null ], + [ "host", "classdnscode_1_1dnscode_1_1SRV.html#a135e00e809ece952d3b15964f97a0714", null ], [ "name", "classdnscode_1_1dnscode_1_1SRV.html#ab23dad0fbcecfc1c2638e9829840302a", null ], [ "port", "classdnscode_1_1dnscode_1_1SRV.html#a43cb8d9167030aecbcd03d73ef536f1d", null ], [ "priority", "classdnscode_1_1dnscode_1_1SRV.html#a84d67e5dbb4cd6cf98e66401e2d7d7a4", null ], [ "protocol", "classdnscode_1_1dnscode_1_1SRV.html#a369bc7ff3b95a5250b9cb3db23bef840", null ], [ "rtype", "classdnscode_1_1dnscode_1_1SRV.html#a7bef244330cc95991edb7fdefc05bd02", null ], [ "service", "classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0", null ], - [ "target", "classdnscode_1_1dnscode_1_1SRV.html#a38043b18f8f888d9ab78479cd194076a", null ], [ "ttl", "classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5", null ], [ "weight", "classdnscode_1_1dnscode_1_1SRV.html#a8612b39fe2585831e7069dcb044ffa75", null ] ]; \ No newline at end of file diff --git a/docs/html/doxygen_crawl.html b/docs/html/doxygen_crawl.html index 24b99a1..0b7d1fd 100644 --- a/docs/html/doxygen_crawl.html +++ b/docs/html/doxygen_crawl.html @@ -138,9 +138,9 @@ + - diff --git a/docs/html/functions.html b/docs/html/functions.html index 7d43f80..b68fb1a 100644 --- a/docs/html/functions.html +++ b/docs/html/functions.html @@ -124,7 +124,7 @@ $(function(){initNavTree('functions.html',''); initResizable(true); });

- h -

@@ -179,7 +179,6 @@ $(function(){initNavTree('functions.html',''); initResizable(true); });

- t -

diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html index 0cc89a7..1dbf667 100644 --- a/docs/html/functions_vars.html +++ b/docs/html/functions_vars.html @@ -112,7 +112,7 @@ $(function(){initNavTree('functions_vars.html',''); initResizable(true); });

- h -

@@ -156,7 +156,6 @@ $(function(){initNavTree('functions_vars.html',''); initResizable(true); });

- t -

diff --git a/docs/html/navtreeindex0.js b/docs/html/navtreeindex0.js index 74f4575..d804b1e 100644 --- a/docs/html/navtreeindex0.js +++ b/docs/html/navtreeindex0.js @@ -116,26 +116,26 @@ var NAVTREEINDEX0 = "classdnscode_1_1dnscode_1_1SOA.html#add36e344fa1dcd53547f052e45e81a02":[5,0,0,0,8,8], "classdnscode_1_1dnscode_1_1SRV.html":[4,0,0,0,9], "classdnscode_1_1dnscode_1_1SRV.html":[5,0,0,0,9], -"classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0":[4,0,0,0,9,7], -"classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0":[5,0,0,0,9,7], -"classdnscode_1_1dnscode_1_1SRV.html#a369bc7ff3b95a5250b9cb3db23bef840":[4,0,0,0,9,5], -"classdnscode_1_1dnscode_1_1SRV.html#a369bc7ff3b95a5250b9cb3db23bef840":[5,0,0,0,9,5], -"classdnscode_1_1dnscode_1_1SRV.html#a38043b18f8f888d9ab78479cd194076a":[4,0,0,0,9,8], -"classdnscode_1_1dnscode_1_1SRV.html#a38043b18f8f888d9ab78479cd194076a":[5,0,0,0,9,8], -"classdnscode_1_1dnscode_1_1SRV.html#a43cb8d9167030aecbcd03d73ef536f1d":[4,0,0,0,9,3], -"classdnscode_1_1dnscode_1_1SRV.html#a43cb8d9167030aecbcd03d73ef536f1d":[5,0,0,0,9,3], +"classdnscode_1_1dnscode_1_1SRV.html#a135e00e809ece952d3b15964f97a0714":[4,0,0,0,9,2], +"classdnscode_1_1dnscode_1_1SRV.html#a135e00e809ece952d3b15964f97a0714":[5,0,0,0,9,2], +"classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0":[4,0,0,0,9,8], +"classdnscode_1_1dnscode_1_1SRV.html#a365a2b7ffaf0bdc718c49e20940213a0":[5,0,0,0,9,8], +"classdnscode_1_1dnscode_1_1SRV.html#a369bc7ff3b95a5250b9cb3db23bef840":[4,0,0,0,9,6], +"classdnscode_1_1dnscode_1_1SRV.html#a369bc7ff3b95a5250b9cb3db23bef840":[5,0,0,0,9,6], +"classdnscode_1_1dnscode_1_1SRV.html#a43cb8d9167030aecbcd03d73ef536f1d":[4,0,0,0,9,4], +"classdnscode_1_1dnscode_1_1SRV.html#a43cb8d9167030aecbcd03d73ef536f1d":[5,0,0,0,9,4], "classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e":[4,0,0,0,9,0], "classdnscode_1_1dnscode_1_1SRV.html#a488bf7130d42c3eb3316cf9903d5454e":[5,0,0,0,9,0], -"classdnscode_1_1dnscode_1_1SRV.html#a7bef244330cc95991edb7fdefc05bd02":[4,0,0,0,9,6], -"classdnscode_1_1dnscode_1_1SRV.html#a7bef244330cc95991edb7fdefc05bd02":[5,0,0,0,9,6], -"classdnscode_1_1dnscode_1_1SRV.html#a84d67e5dbb4cd6cf98e66401e2d7d7a4":[4,0,0,0,9,4], -"classdnscode_1_1dnscode_1_1SRV.html#a84d67e5dbb4cd6cf98e66401e2d7d7a4":[5,0,0,0,9,4], +"classdnscode_1_1dnscode_1_1SRV.html#a7bef244330cc95991edb7fdefc05bd02":[4,0,0,0,9,7], +"classdnscode_1_1dnscode_1_1SRV.html#a7bef244330cc95991edb7fdefc05bd02":[5,0,0,0,9,7], +"classdnscode_1_1dnscode_1_1SRV.html#a84d67e5dbb4cd6cf98e66401e2d7d7a4":[4,0,0,0,9,5], +"classdnscode_1_1dnscode_1_1SRV.html#a84d67e5dbb4cd6cf98e66401e2d7d7a4":[5,0,0,0,9,5], "classdnscode_1_1dnscode_1_1SRV.html#a8612b39fe2585831e7069dcb044ffa75":[4,0,0,0,9,10], "classdnscode_1_1dnscode_1_1SRV.html#a8612b39fe2585831e7069dcb044ffa75":[5,0,0,0,9,10], "classdnscode_1_1dnscode_1_1SRV.html#aa6f868660e840b7dbc3252c234e37a7b":[4,0,0,0,9,1], "classdnscode_1_1dnscode_1_1SRV.html#aa6f868660e840b7dbc3252c234e37a7b":[5,0,0,0,9,1], -"classdnscode_1_1dnscode_1_1SRV.html#ab23dad0fbcecfc1c2638e9829840302a":[4,0,0,0,9,2], -"classdnscode_1_1dnscode_1_1SRV.html#ab23dad0fbcecfc1c2638e9829840302a":[5,0,0,0,9,2], +"classdnscode_1_1dnscode_1_1SRV.html#ab23dad0fbcecfc1c2638e9829840302a":[4,0,0,0,9,3], +"classdnscode_1_1dnscode_1_1SRV.html#ab23dad0fbcecfc1c2638e9829840302a":[5,0,0,0,9,3], "classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5":[4,0,0,0,9,9], "classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5":[5,0,0,0,9,9], "classdnscode_1_1dnscode_1_1TXT.html":[4,0,0,0,10], diff --git a/docs/html/search/all_5.js b/docs/html/search/all_5.js index ddca325..be2f398 100644 --- a/docs/html/search/all_5.js +++ b/docs/html/search/all_5.js @@ -1,4 +1,4 @@ var searchData= [ - ['host_0',['host',['../classdnscode_1_1dnscode_1_1MX.html#a467154486271ccfc3bdfb8edfebd33ba',1,'dnscode.dnscode.MX.host'],['../classdnscode_1_1dnscode_1_1NS.html#aa418dd4df63fed40a6f37077f61f502e',1,'dnscode.dnscode.NS.host']]] + ['host_0',['host',['../classdnscode_1_1dnscode_1_1MX.html#a467154486271ccfc3bdfb8edfebd33ba',1,'dnscode.dnscode.MX.host'],['../classdnscode_1_1dnscode_1_1NS.html#aa418dd4df63fed40a6f37077f61f502e',1,'dnscode.dnscode.NS.host'],['../classdnscode_1_1dnscode_1_1SRV.html#a135e00e809ece952d3b15964f97a0714',1,'dnscode.dnscode.SRV.host']]] ]; diff --git a/docs/html/search/all_d.js b/docs/html/search/all_d.js index 14a5b09..d7e7247 100644 --- a/docs/html/search/all_d.js +++ b/docs/html/search/all_d.js @@ -1,6 +1,5 @@ var searchData= [ - ['target_0',['target',['../classdnscode_1_1dnscode_1_1SRV.html#a38043b18f8f888d9ab78479cd194076a',1,'dnscode::dnscode::SRV']]], - ['ttl_1',['ttl',['../classdnscode_1_1dnscode_1_1Record.html#a875d04fc6789b0e36e0b56dbfa8aa7b8',1,'dnscode.dnscode.Record.ttl'],['../classdnscode_1_1dnscode_1_1A.html#ac48289ec4dd4f287fa5fd93dd537d974',1,'dnscode.dnscode.A.ttl'],['../classdnscode_1_1dnscode_1_1AAAA.html#abd8ff53d71d8ae9e1801b562d384c3a3',1,'dnscode.dnscode.AAAA.ttl'],['../classdnscode_1_1dnscode_1_1CNAME.html#aa5ecf670a1c88f92991280aedb5ad322',1,'dnscode.dnscode.CNAME.ttl'],['../classdnscode_1_1dnscode_1_1MX.html#a44e80917859f828710a43ff3f0dbe8ed',1,'dnscode.dnscode.MX.ttl'],['../classdnscode_1_1dnscode_1_1NS.html#a80316c5453f699b87891e868458e0541',1,'dnscode.dnscode.NS.ttl'],['../classdnscode_1_1dnscode_1_1PTR.html#a388098f988ab7eff6d30811b4ed8758f',1,'dnscode.dnscode.PTR.ttl'],['../classdnscode_1_1dnscode_1_1SOA.html#a3f98e8ca93d98290d26e595b9e1d5841',1,'dnscode.dnscode.SOA.ttl'],['../classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5',1,'dnscode.dnscode.SRV.ttl'],['../classdnscode_1_1dnscode_1_1TXT.html#aa1a7962a740d84279b6a136fb91f57de',1,'dnscode.dnscode.TXT.ttl']]], - ['txt_2',['TXT',['../classdnscode_1_1dnscode_1_1TXT.html',1,'dnscode::dnscode']]] + ['ttl_0',['ttl',['../classdnscode_1_1dnscode_1_1Record.html#a875d04fc6789b0e36e0b56dbfa8aa7b8',1,'dnscode.dnscode.Record.ttl'],['../classdnscode_1_1dnscode_1_1A.html#ac48289ec4dd4f287fa5fd93dd537d974',1,'dnscode.dnscode.A.ttl'],['../classdnscode_1_1dnscode_1_1AAAA.html#abd8ff53d71d8ae9e1801b562d384c3a3',1,'dnscode.dnscode.AAAA.ttl'],['../classdnscode_1_1dnscode_1_1CNAME.html#aa5ecf670a1c88f92991280aedb5ad322',1,'dnscode.dnscode.CNAME.ttl'],['../classdnscode_1_1dnscode_1_1MX.html#a44e80917859f828710a43ff3f0dbe8ed',1,'dnscode.dnscode.MX.ttl'],['../classdnscode_1_1dnscode_1_1NS.html#a80316c5453f699b87891e868458e0541',1,'dnscode.dnscode.NS.ttl'],['../classdnscode_1_1dnscode_1_1PTR.html#a388098f988ab7eff6d30811b4ed8758f',1,'dnscode.dnscode.PTR.ttl'],['../classdnscode_1_1dnscode_1_1SOA.html#a3f98e8ca93d98290d26e595b9e1d5841',1,'dnscode.dnscode.SOA.ttl'],['../classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5',1,'dnscode.dnscode.SRV.ttl'],['../classdnscode_1_1dnscode_1_1TXT.html#aa1a7962a740d84279b6a136fb91f57de',1,'dnscode.dnscode.TXT.ttl']]], + ['txt_1',['TXT',['../classdnscode_1_1dnscode_1_1TXT.html',1,'dnscode::dnscode']]] ]; diff --git a/docs/html/search/variables_2.js b/docs/html/search/variables_2.js index ddca325..be2f398 100644 --- a/docs/html/search/variables_2.js +++ b/docs/html/search/variables_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['host_0',['host',['../classdnscode_1_1dnscode_1_1MX.html#a467154486271ccfc3bdfb8edfebd33ba',1,'dnscode.dnscode.MX.host'],['../classdnscode_1_1dnscode_1_1NS.html#aa418dd4df63fed40a6f37077f61f502e',1,'dnscode.dnscode.NS.host']]] + ['host_0',['host',['../classdnscode_1_1dnscode_1_1MX.html#a467154486271ccfc3bdfb8edfebd33ba',1,'dnscode.dnscode.MX.host'],['../classdnscode_1_1dnscode_1_1NS.html#aa418dd4df63fed40a6f37077f61f502e',1,'dnscode.dnscode.NS.host'],['../classdnscode_1_1dnscode_1_1SRV.html#a135e00e809ece952d3b15964f97a0714',1,'dnscode.dnscode.SRV.host']]] ]; diff --git a/docs/html/search/variables_9.js b/docs/html/search/variables_9.js index 8aab0ed..c19b6ea 100644 --- a/docs/html/search/variables_9.js +++ b/docs/html/search/variables_9.js @@ -1,5 +1,4 @@ var searchData= [ - ['target_0',['target',['../classdnscode_1_1dnscode_1_1SRV.html#a38043b18f8f888d9ab78479cd194076a',1,'dnscode::dnscode::SRV']]], - ['ttl_1',['ttl',['../classdnscode_1_1dnscode_1_1Record.html#a875d04fc6789b0e36e0b56dbfa8aa7b8',1,'dnscode.dnscode.Record.ttl'],['../classdnscode_1_1dnscode_1_1A.html#ac48289ec4dd4f287fa5fd93dd537d974',1,'dnscode.dnscode.A.ttl'],['../classdnscode_1_1dnscode_1_1AAAA.html#abd8ff53d71d8ae9e1801b562d384c3a3',1,'dnscode.dnscode.AAAA.ttl'],['../classdnscode_1_1dnscode_1_1CNAME.html#aa5ecf670a1c88f92991280aedb5ad322',1,'dnscode.dnscode.CNAME.ttl'],['../classdnscode_1_1dnscode_1_1MX.html#a44e80917859f828710a43ff3f0dbe8ed',1,'dnscode.dnscode.MX.ttl'],['../classdnscode_1_1dnscode_1_1NS.html#a80316c5453f699b87891e868458e0541',1,'dnscode.dnscode.NS.ttl'],['../classdnscode_1_1dnscode_1_1PTR.html#a388098f988ab7eff6d30811b4ed8758f',1,'dnscode.dnscode.PTR.ttl'],['../classdnscode_1_1dnscode_1_1SOA.html#a3f98e8ca93d98290d26e595b9e1d5841',1,'dnscode.dnscode.SOA.ttl'],['../classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5',1,'dnscode.dnscode.SRV.ttl'],['../classdnscode_1_1dnscode_1_1TXT.html#aa1a7962a740d84279b6a136fb91f57de',1,'dnscode.dnscode.TXT.ttl']]] + ['ttl_0',['ttl',['../classdnscode_1_1dnscode_1_1Record.html#a875d04fc6789b0e36e0b56dbfa8aa7b8',1,'dnscode.dnscode.Record.ttl'],['../classdnscode_1_1dnscode_1_1A.html#ac48289ec4dd4f287fa5fd93dd537d974',1,'dnscode.dnscode.A.ttl'],['../classdnscode_1_1dnscode_1_1AAAA.html#abd8ff53d71d8ae9e1801b562d384c3a3',1,'dnscode.dnscode.AAAA.ttl'],['../classdnscode_1_1dnscode_1_1CNAME.html#aa5ecf670a1c88f92991280aedb5ad322',1,'dnscode.dnscode.CNAME.ttl'],['../classdnscode_1_1dnscode_1_1MX.html#a44e80917859f828710a43ff3f0dbe8ed',1,'dnscode.dnscode.MX.ttl'],['../classdnscode_1_1dnscode_1_1NS.html#a80316c5453f699b87891e868458e0541',1,'dnscode.dnscode.NS.ttl'],['../classdnscode_1_1dnscode_1_1PTR.html#a388098f988ab7eff6d30811b4ed8758f',1,'dnscode.dnscode.PTR.ttl'],['../classdnscode_1_1dnscode_1_1SOA.html#a3f98e8ca93d98290d26e595b9e1d5841',1,'dnscode.dnscode.SOA.ttl'],['../classdnscode_1_1dnscode_1_1SRV.html#ab793ceda5d5a11c0030b230a1edfeda5',1,'dnscode.dnscode.SRV.ttl'],['../classdnscode_1_1dnscode_1_1TXT.html#aa1a7962a740d84279b6a136fb91f57de',1,'dnscode.dnscode.TXT.ttl']]] ]; diff --git a/pyproject.toml b/pyproject.toml index ec40458..1d63f1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "dnscode" -version = "1.6.0" +version = "1.6.1" authors = [ { name="Minecraftchest1", email="me@minec1.us" }, ] diff --git a/src/dnscode/dnscode.py b/src/dnscode/dnscode.py index c73c0cf..c3c6abf 100644 --- a/src/dnscode/dnscode.py +++ b/src/dnscode/dnscode.py @@ -175,8 +175,8 @@ class SRV(Record): self.priority = priority self.weight = weight self.port = port - self.target = target - self.data = f"{self.priority} {self.weight} {self.port} {self.target}" + self.host = host + self.data = f"{self.priority} {self.weight} {self.port} {self.host}" @dataclass class TXT(Record):