mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Feat: legacy Clash Premium support
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { Span } from '../../trace';
|
||||
import { ClashClassicRuleSet } from '../writing-strategy/clash';
|
||||
import { LegacyClashPremiumRuleSet } from '../writing-strategy/legacy-clash-premium';
|
||||
import { SingboxSource } from '../writing-strategy/singbox';
|
||||
import { SurgeRuleSet } from '../writing-strategy/surge';
|
||||
import { FileOutput } from './base';
|
||||
@@ -11,6 +12,7 @@ export class RulesetOutput extends FileOutput {
|
||||
this.strategies = [
|
||||
new SurgeRuleSet(type),
|
||||
new ClashClassicRuleSet(type),
|
||||
new LegacyClashPremiumRuleSet(type),
|
||||
new SingboxSource(type)
|
||||
];
|
||||
}
|
||||
@@ -40,7 +42,8 @@ export class ClashOnlyRulesetOutput extends FileOutput {
|
||||
super(span, id);
|
||||
|
||||
this.strategies = [
|
||||
new ClashClassicRuleSet(type)
|
||||
new ClashClassicRuleSet(type),
|
||||
new LegacyClashPremiumRuleSet(type)
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user