Skip to content

Commit

Permalink
fix:remove default selection of category-ads-all
Browse files Browse the repository at this point in the history
  • Loading branch information
7Sageer committed Aug 29, 2024
1 parent 3c1dd3a commit e5fc14a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SingboxConfigBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ConfigBuilder extends BaseConfigBuilder {
});

proxyList.unshift('DIRECT', 'REJECT', '⚡ 自动选择');
outbounds.unshift('🚀 节点选择');
outbounds.unshift('🚀 节点选择','GLOBAL');

outbounds.forEach(outbound => {
if (outbound !== '🚀 节点选择') {
Expand Down
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export const UNIFIED_RULES = [
];

export const PREDEFINED_RULE_SETS = {
minimal: ['Ad Block', 'Location:CN', 'Private'],
balanced: ['Ad Block', 'Location:CN', 'Private', 'Google', 'Youtube', 'AI Services', 'Telegram'],
minimal: ['Location:CN', 'Private'],
balanced: ['Location:CN', 'Private', 'Google', 'Youtube', 'AI Services', 'Telegram'],
comprehensive: UNIFIED_RULES.map(rule => rule.name)
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function parseServerInfo(serverInfo) {
return {
type: params.type,
path: params.path ?? undefined,
...(params.host && { 'headers': { 'Host': params.host } }),
...(params.host && { 'headers': { 'host': params.host } }),
service_name: params.serviceName ?? undefined,
};
}

0 comments on commit e5fc14a

Please sign in to comment.