Skip to content

Commit a198f54

Browse files
committed
server: go playground client supports specifying proxy from env
Signed-off-by: chendotjs <[email protected]>
1 parent aaf820a commit a198f54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/goplay/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func NewClient(baseUrl, userAgent string, timeout time.Duration) *Client {
3838
client: http.Client{
3939
Timeout: timeout,
4040
Transport: &http.Transport{
41+
Proxy: http.ProxyFromEnvironment,
4142
DialContext: dialer.DialContext,
4243
TLSHandshakeTimeout: timeout,
4344
},

0 commit comments

Comments
 (0)