Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
legiz-ru authored Dec 16, 2024
1 parent b1237d1 commit 3c86e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
wget -O re-filter-ip.text https://github.com/1andrevich/Re-filter-lists/raw/main/ipsum.lst
mihomo convert-ruleset ipcidr text re-filter-ip.text ip-rule.mrs
wget -O ruleset-domain-refilter_domains.json https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.json
jq -r '.rules[0].domain as $domain | .rules[0].domainsuffix as $domainsuffix | ($domain + $domainsuffix | unique) | map(select(.) | if index($domainsuffix) != null then "+." + . else . end) | .[]' ruleset-domain-refilter_domains.json > domain-rule.list
jq -r '.rules[0].domain as $domain | .rules[0].domainsuffix as $domainsuffix | ($domain + $domainsuffix | unique) | map(select(.) | (if $domainsuffix and length > 0 then (if index(($domainsuffix // [])[0]) != null then "+." + . else . end) else . end)) | .[]' ruleset-domain-refilterdomains.json > domain-rule.list
mihomo convert-ruleset domain text domain-rule.list domain-rule.mrs
mv domain-rule.mrs domain-rule.list ip-rule.mrs re-filter/
Expand Down

0 comments on commit 3c86e5d

Please sign in to comment.