Fix CRI port forwarding

Websocket support was introduced #33684, which broke the CRI
implementation. This change fixes it.
This commit is contained in:
Yu-Ju Hong
2017-02-03 15:17:16 -08:00
parent ab794c6128
commit bb0eb3c33e
2 changed files with 8 additions and 1 deletions

View File

@@ -302,7 +302,7 @@ func (s *server) servePortForward(req *restful.Request, resp *restful.Response)
return
}
portForwardOptions, err := portforward.NewV4Options(req.Request)
portForwardOptions, err := portforward.BuildV4Options(pf.Port)
if err != nil {
resp.WriteError(http.StatusBadRequest, err)
return