1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-25 23:41:02 +00:00

Fix binding console host for VMware and VirtualBox

Ref https://github.com/GNS3/gns3-gui/issues/1757
This commit is contained in:
Julien Duponchelle 2017-01-09 16:05:29 +01:00
parent b63273ec97
commit 035cbac28e
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 3 additions and 2 deletions

View File

@ -907,7 +907,8 @@ class VirtualBoxVM(BaseNode):
writer=self._remote_pipe,
binary=True,
echo=True)
self._telnet_server = yield from asyncio.start_server(server.run, '127.0.0.1', self.console)
print(self._manager.port_manager.console_host)
self._telnet_server = yield from asyncio.start_server(server.run, self._manager.port_manager.console_host, self.console)
@asyncio.coroutine
def _stop_remote_console(self):

View File

@ -805,7 +805,7 @@ class VMwareVM(BaseNode):
writer=self._remote_pipe,
binary=True,
echo=True)
self._telnet_server = yield from asyncio.start_server(server.run, '127.0.0.1', self.console)
self._telnet_server = yield from asyncio.start_server(server.run, self._manager.port_manager.console_host, self.console)
@asyncio.coroutine
def _stop_remote_console(self):