From 0302ba9566cd3d5796a074dbd13a2e6fae16eb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Montgomery=20Edwards=E2=81=B4=E2=81=B4=E2=81=B8?= <57072051+x448@users.noreply.github.com> Date: Sat, 11 Apr 2020 12:04:10 -0500 Subject: [PATCH 1/2] Update ch01-01-installation.md to require TLS 1.2 Require tlsv1.2 when downloading rustup init script like this: $ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh The new code snippet still fits on one line (tested with Source Code Pro font in Firefox). Close #2300 --- src/ch01-01-installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch01-01-installation.md b/src/ch01-01-installation.md index d7659ebab8..33fe7397c4 100644 --- a/src/ch01-01-installation.md +++ b/src/ch01-01-installation.md @@ -28,7 +28,7 @@ using these steps should work as expected with the content of this book. If you’re using Linux or macOS, open a terminal and enter the following command: ```text -$ curl https://sh.rustup.rs -sSf | sh +$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh ``` The command downloads a script and starts the installation of the `rustup` From 297534d172f9c912dde567223808fff0125c88d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Montgomery=20Edwards=E2=81=B4=E2=81=B4=E2=81=B8?= <57072051+x448@users.noreply.github.com> Date: Sun, 12 Apr 2020 23:21:18 -0500 Subject: [PATCH 2/2] Add https, proto, and tlsv to dictionary.txt --- ci/dictionary.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/dictionary.txt b/ci/dictionary.txt index f2b9c50668..fa7d0a0f0b 100644 --- a/ci/dictionary.txt +++ b/ci/dictionary.txt @@ -198,6 +198,7 @@ Hoare Hola homogenous html +https hyperoptimize hypotheticals Iceburgh @@ -357,6 +358,7 @@ PrimaryColor println priv proc +proto pthreads pushups QuitMessage @@ -476,6 +478,7 @@ timestamp Tiếng timeline tlborm +tlsv TODO TokenStream toml