feat: add connectivity fix options + hardening
This commit is contained in:
41 files changed
+626
-111
No files matched your search
+1
-1
@@ -446,7 +446,7 @@ in
|
||||
printf 'AS12389\n' > "$state/cutoff/egress"
|
||||
printf '24940\n14061\n' > "$state/cutoff/asn.txt"
|
||||
printf '24940\t300.ya.ru\n' > "$state/cutoff/sni.txt"
|
||||
cutoff=$(env ZAPRET_CUTOFF_ENABLED=1 ZAPRET_STATE_DIR="$state" python3 "$proxy_ctl" zapret cutoff)
|
||||
cutoff=$(env ZAPRET_CUTOFF_ENABLED=1 ZAPRET_CUTOFF_DIR="$state/cutoff" python3 "$proxy_ctl" zapret cutoff)
|
||||
printf '%s\n' "$cutoff" | grep -q 'from AS12389$'
|
||||
printf '%s\n' "$cutoff" | grep -qx 'Cutoff: 2 network(s)'
|
||||
printf '%s\n' "$cutoff" | grep -qE '^ AS24940 +300\.ya\.ru$'
|
||||
|
||||
Reference in new issue
Block a user