mirror of
https://github.com/simon987/sist2.git
synced 2025-12-11 22:48:54 +00:00
Default index for web & exec
This commit is contained in:
@@ -331,6 +331,10 @@ int web_args_validate(web_args_t *args, int argc, const char **argv) {
|
|||||||
args->listen_address = DEFAULT_LISTEN_ADDRESS;
|
args->listen_address = DEFAULT_LISTEN_ADDRESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args->es_index == NULL) {
|
||||||
|
args->es_index = DEFAULT_ES_INDEX;
|
||||||
|
}
|
||||||
|
|
||||||
if (args->credentials != NULL) {
|
if (args->credentials != NULL) {
|
||||||
char *ptr = strstr(args->credentials, ":");
|
char *ptr = strstr(args->credentials, ":");
|
||||||
if (ptr == NULL) {
|
if (ptr == NULL) {
|
||||||
@@ -431,6 +435,10 @@ int exec_args_validate(exec_args_t *args, int argc, const char **argv) {
|
|||||||
args->es_url = DEFAULT_ES_URL;
|
args->es_url = DEFAULT_ES_URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args->es_index == NULL) {
|
||||||
|
args->es_index = DEFAULT_ES_INDEX;
|
||||||
|
}
|
||||||
|
|
||||||
if (args->script_path == NULL) {
|
if (args->script_path == NULL) {
|
||||||
LOG_FATAL("cli.c", "--script-file argument is required");
|
LOG_FATAL("cli.c", "--script-file argument is required");
|
||||||
}
|
}
|
||||||
|
|||||||
2
third-party/libscan
vendored
2
third-party/libscan
vendored
Submodule third-party/libscan updated: baf39a8b1a...7aa89b59d9
Reference in New Issue
Block a user