Fix clash store-selected

This commit is contained in:
世界 2022-09-13 17:34:29 +08:00
parent e8f4c2d36f
commit 2373281c41
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -61,6 +61,7 @@ func NewServer(router adapter.Router, logFactory log.ObservableFactory, options
server.mode = "rule" server.mode = "rule"
} }
if options.StoreSelected { if options.StoreSelected {
server.storeSelected = true
cachePath := os.ExpandEnv(options.CacheFile) cachePath := os.ExpandEnv(options.CacheFile)
if cachePath == "" { if cachePath == "" {
cachePath = "cache.db" cachePath = "cache.db"