From b76c357f3f8b2322a4b8389ca3c55fa6ac22e72f Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 2 Feb 2012 08:11:06 -0600 Subject: [PATCH] Fix --ssl-only option. --- other/websockify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {