summaryrefslogtreecommitdiffstats
path: root/x11vnc/sslcmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/sslcmds.c')
-rw-r--r--x11vnc/sslcmds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11vnc/sslcmds.c b/x11vnc/sslcmds.c
index 1fc0144..63ffacf 100644
--- a/x11vnc/sslcmds.c
+++ b/x11vnc/sslcmds.c
@@ -96,6 +96,14 @@ int start_stunnel(int stunnel_port, int x11vnc_port) {
return 0;
}
+ if (no_external_cmds) {
+ rfbLogEnable(1);
+ rfbLog("start_stunnel: cannot run external commands in -nocmds mode:\n");
+ rfbLog(" \"%s\"\n", stunnel_path);
+ rfbLog(" exiting.\n");
+ clean_up_exit(1);
+ }
+
if (! quiet) {
rfbLog("\n");
rfbLog("starting ssl tunnel: %s %d -> %d\n", stunnel_path,
OpenPOWER on IntegriCloud