Fixes #760.
Also removes a warning in policy.REROUTE that is no longer true.
- daemon/http: improved URI checks to fix some proxies (#746, !1311)
- daemon/tls: fixed a double-free for some cases of policy.TLS_FORWARD (!1314)
- hints module: improve parsing comments in hosts files (!1315)
+- renumber module: renumbering works with name matching again (#760, !1334)
Knot Resolver 5.5.1 (2022-06-14)
local prefixes = {}
for from, to in pairs(tbl) do
local prefix = names and ren.name(from, to) or ren.prefix(from, to)
- local bitlen = prefix[2]
- if bitlen ~= nil and bitlen % 8 ~= 0 then
- log_warn(ffi.C.LOG_GRP_POLICY,
- 'REROUTE: network mask - only /8, /16, /24 etc. are supported (entire octets are rewritten)')
- end
table.insert(prefixes, prefix)
end
-- Return rule closure
local octetMask
local result = ""
- if (#ipNet ~= #ipHost) then
+ if #ipNet ~= #ipHost then
return nil
end
+ if intMask == nil then
+ return ipNet
+ end
+
for currentOctetNo = 1, #ipNet do
if intMask >= 8 then
result = result .. ipNet:sub(currentOctetNo,currentOctetNo)