Skip to content

Commit

Permalink
Chore: add reject-drop and reject-no-drop to adguardhome
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jan 10, 2025
1 parent c2af9a2 commit 9f8f838
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Build/build-reject-domainset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { DomainsetOutput } from './lib/create-file';
const readLocalRejectDomainsetPromise = readFileIntoProcessedArray(path.join(SOURCE_DIR, 'domainset/reject_sukka.conf'));
const readLocalRejectExtraDomainsetPromise = readFileIntoProcessedArray(path.join(SOURCE_DIR, 'domainset/reject_sukka_extra.conf'));
const readLocalRejectRulesetPromise = readFileIntoProcessedArray(path.join(SOURCE_DIR, 'non_ip/reject.conf'));
const readLocalRejectDropRulesetPromise = readFileIntoProcessedArray(path.join(SOURCE_DIR, 'non_ip/reject-drop.conf'));
const readLocalRejectNoDropRulesetPromise = readFileIntoProcessedArray(path.join(SOURCE_DIR, 'non_ip/reject-no-drop.conf'));
const readLocalMyRejectRulesetPromise = readFileIntoProcessedArray(path.join(SOURCE_DIR, 'non_ip/my_reject.conf'));

export const buildRejectDomainSet = task(require.main === module, __filename)(async (span) => {
Expand Down Expand Up @@ -178,6 +180,8 @@ export const buildRejectDomainSet = task(require.main === module, __filename)(as
await new DomainsetOutput(span, 'my_reject')
.addFromRuleset(readLocalMyRejectRulesetPromise)
.addFromRuleset(readLocalRejectRulesetPromise)
.addFromRuleset(readLocalRejectDropRulesetPromise)
.addFromRuleset(readLocalRejectNoDropRulesetPromise)
.done()
).adguardhome()
)
Expand Down
1 change: 1 addition & 0 deletions Source/non_ip/reject-no-drop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
AND,((PROTOCOL,UDP), (DOMAIN-SUFFIX,googlevideo.com))
# Block Bilibili/Douyu P2P CDN
DOMAIN-SUFFIX,mcdn.bilivideo.cn
DOMAIN-SUFFIX,szbdyd.com
DOMAIN-SUFFIX,p2p.huya.com
AND,((DOMAIN-KEYWORD,stun), (DOMAIN-KEYWORD,douyu))

0 comments on commit 9f8f838

Please sign in to comment.