@@ -45,7 +45,7 @@ static bool is_buffer_available(size_t buf_len, size_t max_size, char* script) {
45
45
return true;
46
46
}
47
47
48
- static bool exec_process (uv_loop_t * ziti_loop , const char * program , const char * args []) {
48
+ static bool exec_process (uv_loop_t * ziti_loop , const char * program , char * args []) {
49
49
uv_process_t * process = calloc (1 , sizeof (uv_process_t ));
50
50
uv_process_options_t options = {0 };
51
51
uv_stdio_container_t stdio [3 ];
@@ -169,7 +169,7 @@ void chunked_add_nrpt_rules(uv_loop_t *ziti_loop, hostname_list_t *hostnames, co
169
169
170
170
ZITI_LOG (DEBUG , "Executing Add domains NRPT script :" );
171
171
ZITI_LOG (DEBUG , "%s" , cmd );
172
- const char * args [] = {"powershell" , "-Command" , script , NULL };
172
+ char * args [] = {"powershell" , "-Command" , script , NULL };
173
173
bool result = exec_process (ziti_loop , args [0 ], args );
174
174
if (!result ) {
175
175
ZITI_LOG (WARN , "Add domains NRPT script: %d(err=%lu)" , result , GetLastError ());
@@ -260,7 +260,7 @@ void chunked_remove_nrpt_rules(uv_loop_t *ziti_loop, hostname_list_t *hostnames)
260
260
261
261
ZITI_LOG (DEBUG , "Executing Remove domains NRPT script: " );
262
262
ZITI_LOG (DEBUG , "%s" , cmd );
263
- const char * args [] = {"powershell" , "-Command" , script , NULL };
263
+ char * args [] = {"powershell" , "-Command" , script , NULL };
264
264
bool result = exec_process (ziti_loop , args [0 ], args );
265
265
if (!result ) {
266
266
ZITI_LOG (WARN , "Remove domains NRPT script: %d(err=%lu)" , result , GetLastError ());
@@ -403,7 +403,7 @@ void chunked_remove_and_add_nrpt_rules(uv_loop_t *ziti_loop, hostname_list_t *ho
403
403
404
404
ZITI_LOG (DEBUG , "Executing Remove and add domains NRPT script: " );
405
405
ZITI_LOG (DEBUG , "%s" , cmd );
406
- const char * args [] = {"powershell" , "-Command" , script , NULL };
406
+ char * args [] = {"powershell" , "-Command" , script , NULL };
407
407
bool result = exec_process (ziti_loop , args [0 ], args );
408
408
if (!result ) {
409
409
ZITI_LOG (WARN , "Remove and add domains NRPT script: %d(err=%lu)" , result , GetLastError ());
@@ -512,7 +512,7 @@ void update_interface_metric(uv_loop_t *ziti_loop, const char *tun_name, int met
512
512
513
513
ZITI_LOG (DEBUG , "Executing Update Interface metric script :" );
514
514
ZITI_LOG (DEBUG , "%s" , cmd );
515
- const char * args [] = {"powershell" , "-Command" , script , NULL };
515
+ char * args [] = {"powershell" , "-Command" , script , NULL };
516
516
bool result = exec_process (ziti_loop , args [0 ], args );
517
517
if (!result ) {
518
518
ZITI_LOG (WARN , "Update Interface metric script: %d(err=%lu)" , result , GetLastError ());
0 commit comments