fixed conf file option parsing

analogous to 18107bcb7c
This commit is contained in:
Logan oos Even 2021-01-26 14:11:18 +05:45 committed by GitHub
parent 5f34baf9b9
commit 9fe1c5a91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,7 +485,7 @@ static int loadFromFile (const char *path, n2n_sn_t *sss) {
line_vec[2] = strtok(NULL, "\t ");
// not to duplicate the option parser code, call loadFromCLI and pretend we have no option read yet
optind = 1;
optind = 0;
// if separate second token present (optional argument, not part of first), then announce 3 vector members
loadFromCLI(line_vec[2] ? 3 : 2, line_vec, sss);
}