Skip to content

Clash for Android ​

A short block of settings that only the legacy Clash-for-Android client reads. mihomo itself ignores the block on other platforms.

Options ​

FieldTypeDefaultAllowed valuesDescription
append-system-dnsboolfalsetrue | falseAppend the Android system DNS to the configured dns.default-nameserver list at runtime.
ui-subtitle-patternstring(unset)<go template>Custom subtitle template displayed in the Android client.

Source: config/config.go:259-262 · pinned at v1.19.31 (ab405ba)

Example ​

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

Notes ​

  • The block is namespaced for the legacy Android client. The modern ClashMetaForAndroid (CMFA) app reads from elsewhere and does not need this block.

Source: config/config.go:259-262 · v1.19.31 (ab405ba)

Core Tutorial by Argsment