Skip to content

Clash for Android

仅旧版 Clash-for-Android 客户端会读取的一小段设置。mihomo 本身在 其他平台上忽略该块。

选项

字段类型默认值允许值描述
append-system-dnsboolfalsetrue | false运行时把 Android 系统 DNS 追加到已配置的 `dns.default-nameserver` 列表。
ui-subtitle-patternstring(unset)<go template>Android 客户端中显示的自定义副标题模板。

源码: config/config.go:254-257 · 锚定版本 v1.19.27 (5184081)

示例

yaml
clash-for-android:
  append-system-dns: true
  ui-subtitle-pattern: '{{ .NowProxy }} @ {{ .NowGroup }}'

说明

  • 该块面向旧版 Android 客户端。现代 ClashMetaForAndroid(CMFA)应用 从别处读取设置,无需此块。

源码: config/config.go:254-257 · v1.19.27 (5184081)

由 Argsment 出品的 Core Tutorial