mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-31 16:06:53 +00:00 
			
		
		
		
	Default index for web & exec
This commit is contained in:
		
							parent
							
								
									a020a8b32c
								
							
						
					
					
						commit
						d116cf9d91
					
				| @ -331,6 +331,10 @@ int web_args_validate(web_args_t *args, int argc, const char **argv) { | ||||
|         args->listen_address = DEFAULT_LISTEN_ADDRESS; | ||||
|     } | ||||
| 
 | ||||
|     if (args->es_index == NULL) { | ||||
|         args->es_index = DEFAULT_ES_INDEX; | ||||
|     } | ||||
| 
 | ||||
|     if (args->credentials != NULL) { | ||||
|         char *ptr = strstr(args->credentials, ":"); | ||||
|         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; | ||||
|     } | ||||
| 
 | ||||
|     if (args->es_index == NULL) { | ||||
|         args->es_index = DEFAULT_ES_INDEX; | ||||
|     } | ||||
| 
 | ||||
|     if (args->script_path == NULL) { | ||||
|         LOG_FATAL("cli.c", "--script-file argument is required"); | ||||
|     } | ||||
|  | ||||
							
								
								
									
										2
									
								
								third-party/libscan
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								third-party/libscan
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | ||||
| Subproject commit baf39a8b1ac7521ecdd79b274980d07c82c329fc | ||||
| Subproject commit 7aa89b59d989063bc73a7abc0579eb1990117e4f | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user