Cuong Manh Le
c5d14e0075
cmd/cli: only cleanup log file if set
...
Otherwise, normalizeLogFilePath may return incorrect log file path,
causing invalid log file/backup initialization. Thus "--cleanup" will
complain about invalid files.
2024-11-13 15:01:27 +07:00
Cuong Manh Le
9d666be5d4
all: add custom hostname support for provisoning
2024-10-24 13:05:48 +07:00
Cuong Manh Le
3b71d26cf3
cmd/cli: change "ctrld start" behavior
...
Without reading the documentation, users may think that "ctrld start"
will just start ctrld service. However, this is not the case, and may
lead to unexpected result from user's point of view.
This commit changes "ctrld start" to just start already installed ctrld
service, so users won't lost what they did installed before. If there
are any arguments specified, performing the current behavior.
2024-08-07 15:51:11 +07:00
Cuong Manh Le
18a19a3aa2
cmd/cli: cleanup more ctrld generated files
...
While at it, implement function to open log file on Windows for sharing
delete. So the log file could be backup correctly.
This may fix #303
2024-08-07 15:51:11 +07:00
Cuong Manh Le
50ef00526e
cmd/cli: add "--cleanup" flag to remove ctrld's files
2024-08-07 15:51:11 +07:00
Cuong Manh Le
c2556a8e39
cmd/cli: add skipping self checks flag
2024-05-09 18:39:30 +07:00
Cuong Manh Le
d822bf4257
all: add pin protected deactivation
2024-02-07 14:58:38 +07:00
Cuong Manh Le
e92619620d
cmd/cli: doing router setup based on "--iface" flag
...
Solving downgrading issue from newer version to v1.3.1, and also easier
to explain the logic: either doing "magic stuff" or do nothing.
2023-12-11 22:55:16 +07:00
Cuong Manh Le
874ff01ab8
cmd/cli: ensure log time field is formated with ms
2023-12-06 22:31:35 +07:00
Cuong Manh Le
494d8be777
cmd/cli: skip router setup with "ctrld service start"
...
Either do magic stuff and make things work automatically (normal users),
or don't do any of it and just run ctrld as a service (power users).
2023-11-16 20:58:41 +07:00
Cuong Manh Le
904b23eeac
cmd/cli: add --proto flag to set upstream type in cd mode
2023-11-06 19:59:52 +07:00
Cuong Manh Le
6aafe445f5
cmd/cli: add nextdns mode
...
Adding --nextdns flag to "ctrld start" command for generating ctrld
config with nextdns resolver id, then use nextdns as an upstream.
2023-11-06 19:59:31 +07:00
Cuong Manh Le
e03ad4cd77
cmd/cli: ensure cd/cd-org flags must be non-empty
2023-10-04 16:34:47 +07:00
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
829e93c079
cmd: allow import/running ctrld as library
2023-08-15 18:22:38 +07:00