Skip to content

no_proxy environment variable ignored by wget #259

@valentin-krasontovitsch

Description

@valentin-krasontovitsch

When I run the latest image of alpine with sh,
and I set

export http_proxy=myproxy.mydomain:1234

and I set

$ export no_proxy=.test.local

and I run

$ wget service.test.local

I see Connecting to proxy ...

I would have expected to not connect to the proxy.

Steps to reproduce when you're not sitting behind a proxy:

docker run --rm -it alpine sh
export http_proxy=foo.bar
export no_proxy=.com
wget google.com

The above should fail, as wget tries to connect to the (presumably) unresponsive proxy.

Do I have a fundamental misunderstanding regarding wget and / or no_proxy? Or is there something wrong with alpine / the wget alpine is using here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions