Skip to content

Do not use HTTP_PROXY for unix sock - #10739

Merged
icecrime merged 1 commit into
moby:masterfrom
cpuguy83:fix_do_not_proxy_unix_sock
Feb 12, 2015
Merged

icecrime merged 1 commit into
moby:masterfrom
cpuguy83:fix_do_not_proxy_unix_sock

Conversation

@cpuguy83

Copy link
Copy Markdown
Member

Makes sure the CLI does not use HTTP_PROXY when connecting to unix
socket.
Also adds some tests to make sure this functionality works as expected.

Found that the ProxyFromEnvironment already has a special case to not proxy when connecting to localhost. So I think it makes sense to also not proxy when connecting over a unix socket.

Makes sure the CLI does not use HTTP_PROXY when connecting to unix
socket.
Also adds some tests to make sure this functionality works as expected.

Signed-off-by: Brian Goff <[email protected]>
@tiborvass

Copy link
Copy Markdown
Contributor

+1 for the design, makes sense to not use the proxy for unix sockets, if ProxyFromEnvironment skips localhost already.

@icecrime

Copy link
Copy Markdown
Contributor

Design +1 this is much better... I didn't realize that just below the original patch (#9951) was a branch on proto.

@jessfraz

Copy link
Copy Markdown
Contributor

+1 @cpuguy83 :)

@crosbymichael

Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@icecrime

Copy link
Copy Markdown
Contributor

LGTM

icecrime pushed a commit that referenced this pull request Feb 12, 2015
@icecrime
icecrime merged commit d8f60a6 into moby:master Feb 12, 2015
@tiborvass

Copy link
Copy Markdown
Contributor

LGTM

@icecrime

Copy link
Copy Markdown
Contributor

God, sorry, I didn't want to merge...

We need to get docs updated for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants