Skip to content

Commit 97b7e92

Browse files
committed
[executor] Never use any proxy when connecting to Mesos master
1 parent f0503ed commit 97b7e92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

executor/executor.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"context"
3535
"errors"
3636
"io"
37+
"net/http"
3738
"net/url"
3839
"sync"
3940
"syscall"
@@ -93,7 +94,14 @@ func Run(cfg config.Config) {
9394
http = httpcli.New(
9495
httpcli.Endpoint(apiURL.String()),
9596
httpcli.Codec(codecs.ByMediaType[codecs.MediaTypeProtobuf]),
96-
httpcli.Do(httpcli.With(httpcli.Timeout(httpTimeout))),
97+
httpcli.Do(httpcli.With(
98+
httpcli.Timeout(httpTimeout),
99+
httpcli.Transport(func(transport *http.Transport) {
100+
transport.Proxy = func(request *http.Request) (*url.URL, error) {
101+
return nil, nil
102+
}
103+
}),
104+
)),
97105
)
98106

99107
// Fill in the Framework and Executor IDs as call parameters

0 commit comments

Comments
 (0)