FROM mihomo v1.19.6+:
For security reasons, all paths appearing in the configuration file will be limited to workdir (regardless of whether they are relative or absolute). If there is a specific need, please specify additional safe paths by setting the SAFE_PATHS
environment variable while ensuring safety. The syntax of this environment variable is the same as the PATH environment variable parsing rules of this operating system (i.e., semicolon-separated under Windows and colon-separated under other systems)
so, please set Environment=SAFE_PATHS=/usr/share/metacubexd
in mihomo.service
.
Pinned Comments
evine commented on 2025-05-10 13:04 (UTC) (edited on 2025-05-31 08:49 (UTC) by evine)
FROM mihomo v1.19.6+:
For security reasons, all paths appearing in the configuration file will be limited to workdir (regardless of whether they are relative or absolute). If there is a specific need, please specify additional safe paths by setting the
SAFE_PATHS
environment variable while ensuring safety. The syntax of this environment variable is the same as the PATH environment variable parsing rules of this operating system (i.e., semicolon-separated under Windows and colon-separated under other systems)so, please set
Environment=SAFE_PATHS=/usr/share/metacubexd
inmihomo.service
.