platform: Add group expand status

This commit is contained in:
世界
2023-08-12 19:33:43 +08:00
parent cf57e46d69
commit 9f94b21687
7 changed files with 131 additions and 12 deletions

View File

@@ -84,7 +84,7 @@ func NewServer(ctx context.Context, router adapter.Router, logFactory log.Observ
if server.mode == "" {
server.mode = "rule"
}
if options.StoreSelected || options.StoreFakeIP {
if options.StoreSelected || options.StoreFakeIP || options.ExternalController == "" {
cachePath := os.ExpandEnv(options.CacheFile)
if cachePath == "" {
cachePath = "cache.db"