mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Fix: opt-in Surge DNS's special handling for .local
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled
Build / Remove Artifacts after Deployment (push) Has been cancelled
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.12) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled
Build / Remove Artifacts after Deployment (push) Has been cancelled
This commit is contained in:
@@ -6,7 +6,7 @@ export interface DNSMapping {
|
||||
realip: boolean,
|
||||
/** should convert to ruleset */
|
||||
ruleset: boolean,
|
||||
dns: string,
|
||||
dns: string | null,
|
||||
/**
|
||||
* domain[0]
|
||||
*
|
||||
@@ -47,6 +47,18 @@ export const DIRECTS = {
|
||||
} as const satisfies Record<string, DNSMapping>;
|
||||
|
||||
export const LAN = {
|
||||
// By default, all hostnames with the suffix '.local' will be resolved by the system.
|
||||
// Some app like OrbStack uses mDNS and this TLD (orb.local) via mDNS.
|
||||
// Surge already handles .local with mDNS properly, we should not map to server:system
|
||||
LOCAL_SPECIAL: {
|
||||
dns: null,
|
||||
hosts: {},
|
||||
realip: false,
|
||||
ruleset: false,
|
||||
domains: [
|
||||
'+local'
|
||||
]
|
||||
},
|
||||
LAN_WITHOUT_REAL_IP: {
|
||||
dns: 'system',
|
||||
hosts: {
|
||||
@@ -139,7 +151,10 @@ export const LAN = {
|
||||
ruleset: true,
|
||||
domains: [
|
||||
'+lan',
|
||||
'+local',
|
||||
// By default, all hostnames with the suffix '.local' will be resolved by the system.
|
||||
// Some app like OrbStack uses mDNS and this TLD (orb.local) via mDNS.
|
||||
// Surge already handles .local with mDNS properly, we should not map to server:system
|
||||
// '+local',
|
||||
'+internal',
|
||||
// 'amplifi.lan',
|
||||
// '$localhost',
|
||||
|
||||
Reference in New Issue
Block a user