mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 20:20:00 -04:00
fix: test: Properly open IPv6 sockets in ANS server for chain test [9.18]
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. Closes #5595 Merge branch '5595-properly-open-ipv6-sockets-chain-test-9.18' into 'bind-9.18' See merge request isc-projects/bind9!11163
This commit is contained in:
commit
80591b83de
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue