fix: zapret2 startup, dnsmasq fakeip rebind protection, dns detour routes (1.3.19)

This commit is contained in:
Dushnilin
2026-09-04 13:56:48 +03:00
parent 196782b18d
commit e901f9d41a
16 changed files with 363 additions and 29 deletions
+10
View File
@@ -186,6 +186,8 @@ cat >"$STATE" <<'EOF_STATE'
dhcp.@dnsmasq[0].server=1.1.1.1 8.8.8.8
dhcp.@dnsmasq[0].noresolv=0
dhcp.@dnsmasq[0].cachesize=150
dhcp.@dnsmasq[0].rebind_protection=1
dhcp.@dnsmasq[0].localuse=0
tachyon.settings.shutdown_correctly=1
EOF_STATE
@@ -198,6 +200,10 @@ assert_value 'dhcp.@dnsmasq[0].noresolv' '1'
assert_value 'dhcp.@dnsmasq[0].tachyon_noresolv' '0'
assert_value 'dhcp.@dnsmasq[0].cachesize' '0'
assert_value 'dhcp.@dnsmasq[0].tachyon_cachesize' '150'
assert_value 'dhcp.@dnsmasq[0].rebind_protection' '0'
assert_value 'dhcp.@dnsmasq[0].tachyon_rebind_protection' '1'
assert_value 'dhcp.@dnsmasq[0].localuse' '1'
assert_value 'dhcp.@dnsmasq[0].tachyon_localuse' '0'
assert_log_contains 'commit dhcp'
assert_dnsmasq_reloaded
@@ -207,9 +213,13 @@ ucode -L "$UCODE_LIB" "$APPLY" restore force
assert_value 'dhcp.@dnsmasq[0].server' '1.1.1.1 8.8.8.8'
assert_value 'dhcp.@dnsmasq[0].noresolv' '0'
assert_value 'dhcp.@dnsmasq[0].cachesize' '150'
assert_value 'dhcp.@dnsmasq[0].rebind_protection' '1'
assert_value 'dhcp.@dnsmasq[0].localuse' '0'
assert_absent 'dhcp.@dnsmasq[0].tachyon_server'
assert_absent 'dhcp.@dnsmasq[0].tachyon_noresolv'
assert_absent 'dhcp.@dnsmasq[0].tachyon_cachesize'
assert_absent 'dhcp.@dnsmasq[0].tachyon_rebind_protection'
assert_absent 'dhcp.@dnsmasq[0].tachyon_localuse'
assert_log_contains 'commit dhcp'
assert_dnsmasq_reloaded