Commit 9abf120 1 parent 8e43a15 commit 9abf120 Copy full SHA for 9abf120
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
convert :
6
6
source : " /etc/openclash/rule_provider"
7
7
target : " /etc/mosdns/from_provider"
8
- processFiles :
8
+ processFiles :
9
9
- " ai.txt"
10
10
- " apple.yaml"
11
11
- " direct.yaml"
@@ -16,4 +16,5 @@ convert:
16
16
# run background to watch the file change
17
17
service :
18
18
enable : True
19
- dbFile : " /etc/mosdns/provider2domainset.db"
19
+ delay : 60
20
+ dbFile : " /etc/mosdns/provider2domainset.db"
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ var Convert struct {
20
20
21
21
var Service struct {
22
22
Enable bool
23
+ Delay int
23
24
DbFile string
24
25
}
25
26
@@ -57,6 +58,7 @@ func update() {
57
58
Convert .ProcessFiles = viper .GetStringSlice ("convert.process_files" )
58
59
59
60
Service .Enable = viper .GetBool ("service.enable" )
61
+ Service .Delay = viper .GetInt ("service.delay" )
60
62
Service .DbFile = viper .GetString ("service.db_file" )
61
63
62
64
if level , err := zapcore .ParseLevel (viper .GetString ("log.level" )); err == nil {
You can’t perform that action at this time.
0 commit comments