Skip to content

Commit bb05ccc

Browse files
authored
Merge pull request #1716 from sanmai-NL/patch-1
Force highest TLS version supported
2 parents ed59a55 + 292754e commit bb05ccc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rustup-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ downloader() {
376376
if [ "$1" = --check ]; then
377377
need_cmd "$_dld"
378378
elif [ "$_dld" = curl ]; then
379-
curl -sSfL "$1" -o "$2"
379+
curl --proto =https --tlsv1.2 --silent --show-error --fail --location "$1" --output "$2"
380380
elif [ "$_dld" = wget ]; then
381-
wget "$1" -O "$2"
381+
wget --https-only --secure-protocol=TLSv1_2 "$1" -O "$2"
382382
else
383383
err "Unknown downloader" # should not reach here
384384
fi

www/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
then follow the onscreen instructions.
3737
</p>
3838
<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>
39-
<pre>curl https://sh.rustup.rs -sSf | sh</pre>
39+
<pre>curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | sh</pre>
4040
<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>
4141
</div>
4242

0 commit comments

Comments
 (0)