MCPcopy
hub / github.com/SukkaW/Surge / DNSMapping

Interface DNSMapping

Source/non_ip/direct.ts:1–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface DNSMapping {
2 hosts: {
3 [domain: string]: string[]
4 },
5 /** which also disallows wildcard */
6 realip: boolean,
7 /** should convert to ruleset */
8 ruleset: boolean,
9 dns: string | null,
10 /**
11 * domain[0]
12 *
13 * + subdomain only
14 * $ domain only exact match
15 * [none] domain and subdomain
16 */
17 domains: string[]
18}
19
20export const DIRECTS = {
21 HOTSPOT_CAPTIVE_PORTAL: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected