mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
Merge pull request #39 from Control-D-Inc/timeout-no-config-mode
cmd/ctrld: add default timeout when generating config in no config mode
This commit is contained in:
@@ -603,6 +603,7 @@ func processNoConfigFlags(noConfigStart bool) {
|
|||||||
Name: pEndpoint,
|
Name: pEndpoint,
|
||||||
Endpoint: pEndpoint,
|
Endpoint: pEndpoint,
|
||||||
Type: pType,
|
Type: pType,
|
||||||
|
Timeout: 5000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if secondaryUpstream != "" {
|
if secondaryUpstream != "" {
|
||||||
@@ -611,6 +612,7 @@ func processNoConfigFlags(noConfigStart bool) {
|
|||||||
Name: sEndpoint,
|
Name: sEndpoint,
|
||||||
Endpoint: sEndpoint,
|
Endpoint: sEndpoint,
|
||||||
Type: sType,
|
Type: sType,
|
||||||
|
Timeout: 5000,
|
||||||
}
|
}
|
||||||
rules := make([]ctrld.Rule, 0, len(domains))
|
rules := make([]ctrld.Rule, 0, len(domains))
|
||||||
for _, domain := range domains {
|
for _, domain := range domains {
|
||||||
|
|||||||
Reference in New Issue
Block a user