From e1a51993913ae684955953f9434873bee67b7c6c Mon Sep 17 00:00:00 2001 From: lhie1 Date: Tue, 7 Dec 2021 18:50:08 +0800 Subject: [PATCH] Clash --- Clash/Head_dns.yaml | 24 ++++++++++-------------- Clash/Head_tap.yaml | 8 +++----- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/Clash/Head_dns.yaml b/Clash/Head_dns.yaml index fe3a12b..cf145f8 100644 --- a/Clash/Head_dns.yaml +++ b/Clash/Head_dns.yaml @@ -4,30 +4,26 @@ mixed-port: 8899 allow-lan: true mode: Rule log-level: info -external-controller: '127.0.0.1:6170' +external-controller: 127.0.0.1:6170 experimental: ignore-resolve-fail: true dns: enable: true - ipv6: false - listen: '0.0.0.0:5450' + # ipv6: false + listen: 0.0.0.0:53 enhanced-mode: fake-ip + fake-ip-range: 198.18.0.1/16 default-nameserver: - 119.29.29.29 - 223.5.5.5 - 223.6.6.6 - fake-ip-filter: - - '*.lan' - - '*.edu.cn' - - localhost.ptlogin2.qq.com - - '*.*.*.srv.nintendo.net' - - '*.*.stun.playstation.net' - - xbox.*.*.microsoft.com - - '*.*.xboxlive.com' - - '*.msftncsi.com' - - 'www.msftconnecttest.com' nameserver: - - 'https://doh.pub/dns-query' + - https://doh.pub/dns-query + - https://dns.alidns.com/dns-query + fake-ip-filter: + - "dns.msftncsi.com" + - "www.msftncsi.com" + - "www.msftconnecttest.com" clash-for-android: # append-system-dns: true # 追加系统 DNS 到 nameserver ui-subtitle-pattern: "[\u4e00-\u9fa5]{2,4}" \ No newline at end of file diff --git a/Clash/Head_tap.yaml b/Clash/Head_tap.yaml index f97c14a..9bf3cff 100644 --- a/Clash/Head_tap.yaml +++ b/Clash/Head_tap.yaml @@ -4,12 +4,12 @@ mixed-port: 8899 allow-lan: true mode: Rule log-level: info -external-controller: '127.0.0.1:6170' +external-controller: 127.0.0.1:6170 experimental: ignore-resolve-fail: true dns: enable: true - ipv6: false + # ipv6: false listen: '0.0.0.0:53' enhanced-mode: redir-host nameserver: @@ -25,6 +25,4 @@ tun: # - 8.8.8.8:53 # - tcp://8.8.8.8:53 auto-route: true -clash-for-android: - # append-system-dns: true # 追加系统 DNS 到 nameserver - ui-subtitle-pattern: "[\u4e00-\u9fa5]{2,4}" \ No newline at end of file + auto-detect-interface: true \ No newline at end of file