all: add CLI flags for no config start

This commit adds the ability to start `ctrld` without config file. All
necessary information can be provided via command line flags, either in
base64 encoded config or launch arguments.
This commit is contained in:
Cuong Manh Le authored and Cuong Manh Le committed 2023-01-20 21:33:05 +07:00
1 parent 30fefe7ab9
commit b93970ccfd
6 files changed
+205 -30

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import (
func newDohResolver(uc *UpstreamConfig) *dohResolver {
r := &dohResolver{
endpoint: uc.Endpoint,
isDoH3: uc.Type == resolverTypeDOH3,
isDoH3: uc.Type == ResolverTypeDOH3,
transport: uc.transport,
http3RoundTripper: uc.http3RoundTripper,
}