Profile
The profile block toggles which pieces of runtime state mihomo writes to its on-disk cache database so they survive a restart.
Options
| Field | Type | Default | Allowed values | Description |
|---|---|---|---|---|
store-selected | bool | false | true | false | Persist the currently selected proxy of each Selector group across restarts. Saved to the cache database. |
store-fake-ip | bool | false | true | false | Persist 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:352-355 · pinned at v1.19.27 (5184081)
Example
yaml
profile:
store-selected: true
store-fake-ip: trueNotes
- The cache database lives next to the config file as
cache.dbby default. Delete it to clear all persisted state. store-fake-ipis recommended whenever you run mihomo as a system-wide proxy; without it, sleep/wake cycles routinely break long-lived connections.
Source: config/config.go:352-355 · v1.19.27 (5184081)
