Logan oos Even
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/edge.c
|
@ -609,8 +609,8 @@ static int loadFromFile (const char *path, n2n_edge_conf_t *conf, n2n_tuntap_pri |
|
|
line_vec[1] = strtok(line, "\t ="); |
|
|
line_vec[1] = strtok(line, "\t ="); |
|
|
// separate parameter option, if present
|
|
|
// separate parameter option, if present
|
|
|
line_vec[2] = strtok(NULL, "\t "); |
|
|
line_vec[2] = strtok(NULL, "\t "); |
|
|
// not to duplicate the option parser code, call loadFromCLI and pretend we have no option read yet
|
|
|
// not to duplicate the option parser code, call loadFromCLI and pretend we have no option read yet at all
|
|
|
optind = 1; |
|
|
optind = 0; |
|
|
// if second token present (optional argument, not part of first), then announce 3 vector members
|
|
|
// if second token present (optional argument, not part of first), then announce 3 vector members
|
|
|
loadFromCLI(line_vec[2] ? 3 : 2, line_vec, conf, ec); |
|
|
loadFromCLI(line_vec[2] ? 3 : 2, line_vec, conf, ec); |
|
|
} |
|
|
} |
|
|