Fix: Status of warp

This commit is contained in:
Whispering Wind
2025-01-07 20:32:04 +03:30
committed by GitHub
parent c60ca9b6c7
commit 6d9c0a35b8

View File

@ -23,7 +23,7 @@ check_warp_configuration() {
echo -e "${cyan}Domestic sites (geosite:ir, geoip:ir):${NC} ${red}Inactive${NC}"
fi
if jq -e '.acl.inline[]? | select(test("reject\\(geosite:category-porn\\)"))' "$CONFIG_FILE" > /dev/null; then
if jq -e '.acl.inline[]? | select(test("reject\\(geosite:nsfw\\)"))' "$CONFIG_FILE" > /dev/null; then
echo -e "${cyan}Block adult content:${NC} ${green}Active${NC}"
else
echo -e "${cyan}Block adult content:${NC} ${red}Inactive${NC}"