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:
Yegor S
2023-04-05 16:17:03 -04:00
committed by GitHub
+2
View File
@@ -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 {