зеркало из https://github.com/Azure/ARO-RP.git
add tunnel fix which was missed in previous merge
This commit is contained in:
Родитель
ffbedfb8b2
Коммит
4a7a7cfcc1
|
@ -140,10 +140,12 @@ func run(ctx context.Context, log *logrus.Entry) error {
|
|||
_, _ = io.Copy(c2, c)
|
||||
}()
|
||||
|
||||
defer func() {
|
||||
_ = c.(*tls.Conn).CloseWrite()
|
||||
func() {
|
||||
defer func() {
|
||||
_ = c.(*tls.Conn).CloseWrite()
|
||||
}()
|
||||
_, _ = io.Copy(c, c2)
|
||||
}()
|
||||
_, _ = io.Copy(c, c2)
|
||||
|
||||
<-ch
|
||||
}(c)
|
||||
|
|
Загрузка…
Ссылка в новой задаче