1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-23 11:04:49 +00:00

Tunnel remote connection

This commit is contained in:
Balthild Ires 2017-04-22 21:07:45 +08:00
parent 5ad484f093
commit 240b315ef0

View file

@ -154,7 +154,7 @@ class CompatibilityMixIn(object):
self.msg('Try to open local socket %s' % console_socket) self.msg('Try to open local socket %s' % console_socket)
tsock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) tsock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
tsock.connect(console_socket) tsock.connect(console_socket)
elif console_socket: elif console_socket or !re.match('^127\.', console_host):
# Need tunnel to physical host # Need tunnel to physical host
if conntype != CONN_SSH: if conntype != CONN_SSH:
self.msg("Need a tunnel to access console but can't mount " + self.msg("Need a tunnel to access console but can't mount " +