Skip to content

Profile ​

The profile block toggles which pieces of runtime state mihomo writes to its on-disk cache database so they survive a restart.

Options ​

FieldTypeDefaultAllowed valuesDescription
store-selectedboolfalsetrue | falsePersist the currently selected proxy of each Selector group across restarts. Saved to the cache database.
store-fake-ipboolfalsetrue | falsePersist the fake-IP → domain mapping. Without this, every restart hands out fresh fake addresses and existing connections that referred to them go cold.

Source: config/config.go:361-364 · pinned at v1.19.31 (ab405ba)

Example ​

yaml
profile:
  store-selected: true
  store-fake-ip: true

Notes ​

  • The cache database lives next to the config file as cache.db by default. Delete it to clear all persisted state.
  • store-fake-ip is recommended whenever you run mihomo as a system-wide proxy; without it, sleep/wake cycles routinely break long-lived connections.

Source: config/config.go:361-364 · v1.19.31 (ab405ba)

Core Tutorial by Argsment