Skip to content

Commit

Permalink
Merge pull request #1716 from sanmai-NL/patch-1
Browse files Browse the repository at this point in the history
Force highest TLS version supported
  • Loading branch information
kinnison authored Mar 26, 2019
2 parents ed59a55 + 292754e commit bb05ccc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ downloader() {
if [ "$1" = --check ]; then
need_cmd "$_dld"
elif [ "$_dld" = curl ]; then
curl -sSfL "$1" -o "$2"
curl --proto =https --tlsv1.2 --silent --show-error --fail --location "$1" --output "$2"
elif [ "$_dld" = wget ]; then
wget "$1" -O "$2"
wget --https-only --secure-protocol=TLSv1_2 "$1" -O "$2"
else
err "Unknown downloader" # should not reach here
fi
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
then follow the onscreen instructions.
</p>
<p>If you're a Windows Subsystem for Linux user run the following in your terminal, then follow the onscreen instructions to install Rust.</p>
<pre>curl https://sh.rustup.rs -sSf | sh</pre>
<pre>curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
<p class="other-platforms-help">You appear to be running Windows 32-bit. If not, <a class="default-platform-button" href="#">display all supported installers</a>.</p>
</div>

Expand Down

0 comments on commit bb05ccc

Please sign in to comment.