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:
parent
d94ca38e5c
commit
5ad484f093
1 changed files with 1 additions and 1 deletions
|
|
@ -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 " +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue