Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2015-12-16 12:00:48 +01:00
Родитель 61a94411b5
Коммит 38f409d283
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -70,7 +70,7 @@ func (cli *Client) postHijacked(path string, query url.Values, body interface{},
rwc, br := clientconn.Hijack()
return types.HijackedResponse{rwc, br}, nil
return types.HijackedResponse{Conn: rwc, Reader: br}, nil
}
func tlsDial(network, addr string, config *tls.Config) (net.Conn, error) {

Просмотреть файл

@ -29,7 +29,7 @@ func (cli *Client) NetworkRemove(networkID string) error {
// NetworkConnect connects a container to an existent network in the docker host.
func (cli *Client) NetworkConnect(networkID, containerID string) error {
nc := types.NetworkConnect{containerID}
nc := types.NetworkConnect{Container: containerID}
resp, err := cli.post("/networks/"+networkID+"/connect", nil, nc, nil)
ensureReaderClosed(resp)
return err
@ -37,7 +37,7 @@ func (cli *Client) NetworkConnect(networkID, containerID string) error {
// NetworkDisconnect disconnects a container from an existent network in the docker host.
func (cli *Client) NetworkDisconnect(networkID, containerID string) error {
nc := types.NetworkConnect{containerID}
nc := types.NetworkConnect{Container: containerID}
resp, err := cli.post("/networks/"+networkID+"/disconnect", nil, nc, nil)
ensureReaderClosed(resp)
return err