Skip to content

Commit

Permalink
Merge pull request #55 from peckpeck/bug_8135/do_not_use_proxy_when_c…
Browse files Browse the repository at this point in the history
…alling_localhost_in_rudder_agent

Fixes #8135:  Do not use proxy when calling localhost in rudder agent
  • Loading branch information
amousset committed Mar 31, 2016
2 parents 88a9550 + 35a4170 commit 98a73ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/lib/api_call.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

if type curl >/dev/null 2>/dev/null
then
DOWNLOAD_COMMAND="curl -sS -k -L"
DOWNLOAD_COMMAND="curl --silent --show-error --insecure --location --proxy ''"
else
DOWNLOAD_COMMAND="wget -q --no-check-certificate -O -"
DOWNLOAD_COMMAND="wget --quiet --no-check-certificate --no-proxy -O -"
fi

# This functions tests if the API call returns "OK"
Expand Down

0 comments on commit 98a73ec

Please sign in to comment.