mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Use ipv4 in wincat port forward
This commit is contained in:
parent
ef2016c253
commit
4301bbff08
@ -28,7 +28,7 @@ import (
|
|||||||
|
|
||||||
func (r *streamingRuntime) portForward(podSandboxID string, port int32, stream io.ReadWriteCloser) error {
|
func (r *streamingRuntime) portForward(podSandboxID string, port int32, stream io.ReadWriteCloser) error {
|
||||||
stderr := new(bytes.Buffer)
|
stderr := new(bytes.Buffer)
|
||||||
err := r.exec(podSandboxID, []string{"wincat.exe", "localhost", fmt.Sprint(port)}, stream, stream, ioutils.WriteCloserWrapper(stderr), false, nil, 0)
|
err := r.exec(podSandboxID, []string{"wincat.exe", "127.0.0.1", fmt.Sprint(port)}, stream, stream, ioutils.WriteCloserWrapper(stderr), false, nil, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("%v: %s", err, stderr.String())
|
return fmt.Errorf("%v: %s", err, stderr.String())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user