mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
19 lines
675 B
TypeScript
19 lines
675 B
TypeScript
import { noop } from 'foxts/noop';
|
|
import { OUTPUT_LEAGCY_CLASH_PREMIUM_DIR } from '../../constants/dir';
|
|
import { ClashClassicRuleSet } from './clash';
|
|
|
|
export class LegacyClashPremiumClassicRuleSet extends ClashClassicRuleSet {
|
|
public override readonly name = 'legacy clash premium classic ruleset';
|
|
|
|
readonly fileExtension = 'txt';
|
|
|
|
protected result: string[] = ['DOMAIN,this_ruleset_is_made_by_sukkaw.ruleset.skk.moe'];
|
|
|
|
constructor(public readonly type: 'ip' | 'non_ip' /* | (string & {}) */, public readonly outputDir = OUTPUT_LEAGCY_CLASH_PREMIUM_DIR) {
|
|
super(type, outputDir);
|
|
}
|
|
|
|
override writeDomainWildcards = noop;
|
|
override writeIpAsns = noop;
|
|
}
|