Renamed webroot to webroot_base
This commit is contained in:
@ -179,7 +179,7 @@ int main(int argc, const char *argv[]) {
|
||||
fprintf(stderr, ERR_STR "Unable to parse argument %s, usage: --webroot <WEBROOT>" CLR_STR "\n", arg);
|
||||
return 1;
|
||||
}
|
||||
webroot = argv[++i];
|
||||
webroot_base = argv[++i];
|
||||
} else if ((len == 2 && strncmp(arg, "-c", 2) == 0) || (len == 6 && strncmp(arg, "--cert", 6) == 0)) {
|
||||
if (i == argc - 1) {
|
||||
fprintf(stderr, ERR_STR "Unable to parse argument %s, usage: --cert <CERT-FILE>" CLR_STR "\n", arg);
|
||||
@ -198,7 +198,7 @@ int main(int argc, const char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (webroot == NULL) {
|
||||
if (webroot_base == NULL) {
|
||||
fprintf(stderr, ERR_STR "Error: --webroot is missing" CLR_STR "\n");
|
||||
return 1;
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ pid_t CHILDREN[MAX_CHILDREN];
|
||||
|
||||
FILE *parent_stdout, *parent_stderr;
|
||||
|
||||
const char *cert_file, *key_file, *webroot;
|
||||
const char *cert_file, *key_file, *webroot_base;
|
||||
|
||||
typedef struct {
|
||||
int enc:1;
|
||||
|
Reference in New Issue
Block a user