From f4d7dd433ab05d876f76384e4ef43e4fe7f2a7c5 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) {