DEV Community

Roy
Roy

Posted on

127.0.0.1 is not proxied by default, but localhost is

# not work for localhost
$ curl https://localhost:8443 --insecure
curl: (35) TLS connect error: error:0A000126:SSL routines::unexpected eof while reading

# work for 127.0.0.1
$ curl https://127.0.0.1:8443 --insecure
Kiada version 0.2. Request processed by "kiada-ssl". Client IP: ::ffff:127.0.0.1

# I have https_proxy in the env virable, which cause the problem
export NO_PROXY="localhost"
export no_proxy=$NO_PROXY

# work for localhost now
$ curl https://localhost:8443 --insecure
Kiada version 0.2. Request processed by "kiada-ssl". Client IP: ::ffff:127.0.0.1
Enter fullscreen mode Exit fullscreen mode

Top comments (0)