mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/ctrld: add default timeout when generating config in no config mode
This commit is contained in:
committed by
Cuong Manh Le
parent
a777c4b00f
commit
471427a439
@@ -603,6 +603,7 @@ func processNoConfigFlags(noConfigStart bool) {
|
||||
Name: pEndpoint,
|
||||
Endpoint: pEndpoint,
|
||||
Type: pType,
|
||||
Timeout: 5000,
|
||||
},
|
||||
}
|
||||
if secondaryUpstream != "" {
|
||||
@@ -611,6 +612,7 @@ func processNoConfigFlags(noConfigStart bool) {
|
||||
Name: sEndpoint,
|
||||
Endpoint: sEndpoint,
|
||||
Type: sType,
|
||||
Timeout: 5000,
|
||||
}
|
||||
rules := make([]ctrld.Rule, 0, len(domains))
|
||||
for _, domain := range domains {
|
||||
|
||||
Reference in New Issue
Block a user