mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-21 23:56:40 +00:00
fix(lib/test): fix failing test and invalid cloudflare workers rule
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -6,8 +6,6 @@
|
|||||||
- userAgent.contains("MSIE")
|
- userAgent.contains("MSIE")
|
||||||
# Trident is the Internet Explorer browser engine
|
# Trident is the Internet Explorer browser engine
|
||||||
- userAgent.contains("Trident")
|
- userAgent.contains("Trident")
|
||||||
# iPods are not in common use
|
|
||||||
- userAgent.contains("iPod")
|
|
||||||
# Opera is a fork of chrome now
|
# Opera is a fork of chrome now
|
||||||
- userAgent.contains("Presto")
|
- userAgent.contains("Presto")
|
||||||
# Windows CE is discontinued
|
# Windows CE is discontinued
|
||||||
@@ -26,5 +24,5 @@
|
|||||||
any:
|
any:
|
||||||
# This is not released, even Windows 11 calls itself Windows 10
|
# This is not released, even Windows 11 calls itself Windows 10
|
||||||
- userAgent.contains("Windows NT 11.0")
|
- userAgent.contains("Windows NT 11.0")
|
||||||
# Safari's User-Agent doesn't contain Safari
|
# iPods are not in common use
|
||||||
- (!userAgent.contains("Chrome") && userAgent.contains("Safari"))
|
- userAgent.contains("iPod")
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: cloudflare-workers
|
- name: cloudflare-workers
|
||||||
expression: >
|
headers_regex:
|
||||||
"Cf-Worker" in headers
|
CF-Worker: .*
|
||||||
action: DENY
|
action: DENY
|
||||||
+1
-1
@@ -83,7 +83,7 @@ func TestCVE2025_24369(t *testing.T) {
|
|||||||
Next: http.NewServeMux(),
|
Next: http.NewServeMux(),
|
||||||
Policy: pol,
|
Policy: pol,
|
||||||
|
|
||||||
CookieDomain: "local.cetacean.club",
|
CookieDomain: ".local.cetacean.club",
|
||||||
CookiePartitioned: true,
|
CookiePartitioned: true,
|
||||||
CookieName: t.Name(),
|
CookieName: t.Name(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user