Skip to content

Commit

Permalink
Fix binding console host for VMware and VirtualBox
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed Jan 9, 2017
1 parent b63273e commit 035cbac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gns3server/compute/virtualbox/virtualbox_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,8 @@ def _start_console(self):
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):
Expand Down
2 changes: 1 addition & 1 deletion gns3server/compute/vmware/vmware_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def _start_console(self):
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):
Expand Down

0 comments on commit 035cbac

Please sign in to comment.