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:254-257 · pinned at v1.19.27 (5184081)

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:254-257 · v1.19.27 (5184081)

Core Tutorial by Argsment