cmd/ctrld: add default timeout when generating config in no config mode

This commit is contained in:
Cuong Manh Le
2023-04-06 00:49:21 +07:00
committed by Cuong Manh Le
parent a777c4b00f
commit 471427a439

View File

@@ -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 {