mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 17:50:34 +08:00
Fix internal mihomo nameserver policy file type
This commit is contained in:
parent
897fe81604
commit
9730b01925
@ -11,7 +11,7 @@ import { once } from 'foxts/once';
|
|||||||
import * as yaml from 'yaml';
|
import * as yaml from 'yaml';
|
||||||
import { appendArrayInPlace } from 'foxts/append-array-in-place';
|
import { appendArrayInPlace } from 'foxts/append-array-in-place';
|
||||||
import { OUTPUT_INTERNAL_DIR, OUTPUT_MODULES_DIR, OUTPUT_MODULES_RULES_DIR, SOURCE_DIR } from './constants/dir';
|
import { OUTPUT_INTERNAL_DIR, OUTPUT_MODULES_DIR, OUTPUT_MODULES_RULES_DIR, SOURCE_DIR } from './constants/dir';
|
||||||
import { RulesetOutput } from './lib/rules/ruleset';
|
import { MihomoNameserverPolicyOutput, RulesetOutput } from './lib/rules/ruleset';
|
||||||
import { SurgeOnlyRulesetOutput } from './lib/rules/ruleset';
|
import { SurgeOnlyRulesetOutput } from './lib/rules/ruleset';
|
||||||
|
|
||||||
export function createGetDnsMappingRule(allowWildcard: boolean) {
|
export function createGetDnsMappingRule(allowWildcard: boolean) {
|
||||||
@ -134,7 +134,7 @@ export const buildDomesticRuleset = task(require.main === module, __filename)(as
|
|||||||
'Do not use this file in your Rule section, all entries are included in non_ip/domestic.conf already.'
|
'Do not use this file in your Rule section, all entries are included in non_ip/domestic.conf already.'
|
||||||
);
|
);
|
||||||
|
|
||||||
const mihomoOutput = new SurgeOnlyRulesetOutput(
|
const mihomoOutput = new MihomoNameserverPolicyOutput(
|
||||||
span,
|
span,
|
||||||
name.toLowerCase(),
|
name.toLowerCase(),
|
||||||
'mihomo_nameserver_policy',
|
'mihomo_nameserver_policy',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user