Skip to content
Snippets Groups Projects
Commit 0b4795b3 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests: do not remap addresses already in local range

parent 7f1b5772
Branches
Tags
No related merge requests found
......@@ -102,7 +102,11 @@ class TestServer:
addr_local = am.local
new_entry = False
if addr_local is None:
addr_local = get_local_addr_str(family, iface)
# Do not remap addresses already in local range
if addr.startswith('127.0.0.') or addr.startswith('::'):
addr_local = addr
else:
addr_local = get_local_addr_str(family, iface)
am = AddrMapInfo(family,addr_local,addr_external)
self.addr_map.append(am)
new_entry = True
......
......@@ -2,14 +2,14 @@
target-fetch-policy: "0 0 0 0 0"
query-minimization: on
name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
stub-addr: 127.0.0.10 # K.ROOT-SERVERS.NET.
CONFIG_END
SCENARIO_BEGIN Test basic query minimization www.example.com.
; K.ROOT-SERVERS.NET.
RANGE_BEGIN 0 100
ADDRESS 193.0.14.129
ADDRESS 127.0.0.10
ENTRY_BEGIN
MATCH opcode qtype qname
ADJUST copy_id
......@@ -19,7 +19,7 @@ SECTION QUESTION
SECTION ANSWER
. IN NS K.ROOT-SERVERS.NET.
SECTION ADDITIONAL
K.ROOT-SERVERS.NET. IN A 193.0.14.129
K.ROOT-SERVERS.NET. IN A 127.0.0.10
ENTRY_END
ENTRY_BEGIN
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment