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

localhost should be direct accessed too

This commit is contained in:
Balthild Ires 2017-04-22 20:37:25 +08:00
parent d94ca38e5c
commit 5ad484f093

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 or re.match('^127\.', console_host): elif console_socket:
# 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 " +