diff --git a/other/websockify.c b/other/websockify.c index b9dd9f8..fe130a5 100644 --- a/other/websockify.c +++ b/other/websockify.c @@ -343,7 +343,7 @@ int main(int argc, char *argv[]) } 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); } } else if (access(settings.cert, R_OK) != 0) {