Cuong Manh Le
bed7435b0c
cmd: refactoring Run function
...
So it's easier, more clear, more isolation between code on non-mobile
and mobile platforms.
2023-09-22 18:45:00 +07:00
Ginder Singh
507c1afd59
cmd: allow import/running ctrld as library
2023-09-22 18:44:24 +07:00
Cuong Manh Le
13391fd469
Generating working default config in non-cd mode
...
Using the same approach as in cd mode, but do it only once when running
ctrld the first time, then the config will be re-used then.
While at it, also adding Dockerfile.debug for better troubleshooting
with alpine base image.
2023-09-22 18:34:46 +07:00
Cuong Manh Le
f39512b4c0
cmd/ctrld: only write to config file if listener config changed
...
Updates #149
2023-08-29 10:01:33 +07:00
Cuong Manh Le
7ce62ccaec
Validate DoH/DoH3 endpoint properly
...
When resolver type is doh/doh3, the endpoint must be a valid http url.
Updates #149
2023-08-29 10:01:06 +07:00
Cuong Manh Le
829e93c079
cmd: allow import/running ctrld as library
2023-08-15 18:22:38 +07:00