Skip to content

Commit

Permalink
fix: config ipv4 prefer and database sync time change to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
若尘(樱の泪) committed Feb 24, 2019
1 parent 04af0eb commit 89e8678
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions common/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,20 @@ func DefaultConfig() *Config {
return &Config{
Mode: "db",
DbConfig: DbConfig{
Level: -1,
Rate: -1,
Level: -1,
Rate: -1,
SyncTime: 60000,
OnlineSyncTime: 60000,
},
ShadowsocksOptions: ShadowsocksOptions{
ConnectTimeout: 3000,
TCPSwitch: "true",
UDPSwitch: "true",
},
DNSOptions: DnsOptions{
DNS1: "8.8.8.8:53",
DNS2: "8.8.4.4:53",
DNS1: "8.8.8.8:53",
DNS2: "8.8.4.4:53",
IPV4Prefer: true,
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func DbStarted(ctx context.Context) {
if conf.DbConfig.SyncTime == 0 {
survey.AskOne(&survey.Input{
Message: "what is your want database sync time (unit: Millisencod)?",
Default: "3000",
Default: "60000",
}, &conf.DbConfig.SyncTime, nil)
}

Expand Down

0 comments on commit 89e8678

Please sign in to comment.