From 293dc203990da1e3c33632da927dba8cf6802331 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 28 Oct 2025 12:00:38 +1100 Subject: [PATCH] Properly open IPv6 sockets in ANS server for chain test There were cut-and-paste errors in the opening of the IPv6 TCP socket of the ANS server 4 for the chain test. This resulted in some tests timing out rather than returning an answer. --- bin/tests/system/chain/ans4/ans.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/tests/system/chain/ans4/ans.py b/bin/tests/system/chain/ans4/ans.py index 66f0193cac..c969117368 100755 --- a/bin/tests/system/chain/ans4/ans.py +++ b/bin/tests/system/chain/ans4/ans.py @@ -146,7 +146,7 @@ def create_response(msg): elif typename == "AAAA": final = "fd92:7065:b8e:ffff::4" elif typename == "TXT": - final = "Some\ text\ here" + final = "Some\\ text\\ here" elif typename == "NS": domain = qname final = "ns1.%s" % domain @@ -333,9 +333,9 @@ try: query6_udp.close() havev6 = False - query6_tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + query6_tcp = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) try: - query6_tcp.bind((ip4, port)) + query6_tcp.bind((ip6, port)) query6_tcp.listen(1) query6_tcp.settimeout(1) except: