1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix a bug in docker binary message handling

This commit is contained in:
Julien Duponchelle 2017-07-11 19:00:29 +02:00
parent d525f721a6
commit fc87871d46
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -502,7 +502,7 @@ class DockerVM(BaseNode):
msg = yield from ws.receive()
if msg.tp == aiohttp.MsgType.TEXT:
out.feed_data(msg.data.encode())
if msg.tp == aiohttp.MsgType.BINARY:
elif msg.tp == aiohttp.MsgType.BINARY:
out.feed_data(msg.data)
elif msg.tp == aiohttp.MsgType.ERROR:
log.critical("Docker WebSocket Error: {}".format(msg.data))