Skip to content

Commit a428f5a

Browse files
author
Quentin Perez
committed
Merge pull request #363 from debovema/master
Use proxy configuration from environment in 'scw attach' command
2 parents 8fe8a57 + d8d4406 commit a428f5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/utils/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ func AttachToSerial(serverID string, apiToken string) (*gottyclient.Client, chan
203203
gottycli.SkipTLSVerify = true
204204
}
205205

206+
gottycli.UseProxyFromEnv = true
207+
206208
if err = gottycli.Connect(); err != nil {
207209
return nil, nil, err
208210
}

0 commit comments

Comments
 (0)