Fix --ssl-only option.
This commit is contained in:
parent
8e95f18f99
commit
b76c357f3f
|
|
@ -343,7 +343,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ssl_only) {
|
if (ssl_only) {
|
||||||
if (!access(settings.cert, R_OK)) {
|
if (access(settings.cert, R_OK) != 0) {
|
||||||
usage("SSL only and cert file '%s' not found\n", settings.cert);
|
usage("SSL only and cert file '%s' not found\n", settings.cert);
|
||||||
}
|
}
|
||||||
} else if (access(settings.cert, R_OK) != 0) {
|
} else if (access(settings.cert, R_OK) != 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue