From 2c4a6e16eb9b07aa8a9364ecd5c49f4e9109b052 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 4 May 2016 14:02:37 +0200 Subject: [PATCH] For novnc, only need a tunnel to physical host if connhost is not localhost --- console/novncd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console/novncd b/console/novncd index cff4376..0fedb85 100755 --- a/console/novncd +++ b/console/novncd @@ -154,7 +154,8 @@ class CompatibilityMixIn(object): self.msg('Try to open local socket %s' % console_socket) tsock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) tsock.connect(console_socket) - elif console_socket or re.match('^127\.', console_host): + # only need a tunnel to physical host if host is not localhost + elif connhost != "localhost" and (console_socket or re.match('^127\.', console_host)): # Need tunnel to physical host if conntype != CONN_SSH: self.msg("Need a tunnel to access console but can't mount " +