From e876a2265417438bd1cd5aef9d165c9b963409cd Mon Sep 17 00:00:00 2001 From: garry-ut99 <72945564+garry-ut99@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:50:44 +0000 Subject: [PATCH] Safer example (at least for now) [previous commit]. --- Static-filter-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index d875449..63618c8 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -584,7 +584,7 @@ The value assigned to `ipaddress` can either be a plain string which must match ```adb *$script,ipaddress=93.184.215.14 ||xyz/|$xhr,3p,method=head,ipaddress=/^139\.45\.19[5-7]\.\d{1,3}/ -*$all,ipaddress=::,domain=~0.0.0.0|~127.0.0.1|~[::1]|~[::]|~local|~localhost +*$all,ipaddress=/^::$/,domain=~0.0.0.0|~127.0.0.1|~[::1]|~[::]|~local|~localhost ``` The `ipaddress` option can only be enforced when the extension framework does provide a valid IP address in a _onHeadersReceived_ listener. For instance, cached resources do not have a valid IP address and thus can't be a match to `ipaddress` option.