Allow wss as websocket protocol

Allow users to establish "wss" (secure web socket) connection to
the container. This is a client side fix but we also need to fix
the server to fully support "wss"

Change-Id: I1dd4f4872be03d1d80e3decbab18b41376230aba
Partial-Bug: #1762511
(cherry picked from commit ff3b380680)
This commit is contained in:
Hongbin Lu 2018-11-24 19:35:42 +00:00
parent 33d7e45498
commit 5a0a132830
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ class WINCHHandler(object):
def do_attach(zunclient, url, container_id, escape, close_wait):
if url.startswith("ws://"):
if url.startswith("ws://") or url.startswith("wss://"):
try:
wscls = WebSocketClient(zunclient=zunclient, url=url,
id=container_id, escape=escape,