This commit is contained in:
djc
2022-03-28 08:02:42 +00:00
parent dab4ace8d4
commit aaec593568
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ After configuring plug the configuration into the <code>Endpoint</code>.</p>
<pre><pre class="playground"><code class="language-rust">
<span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>let server_config = ServerConfig::with_single_cert(vec![cert]), key)?;
</span>let server_config = ServerConfig::with_single_cert(vec![cert], key)?;
<span class="boring">}
</span></code></pre></pre>
<p>This is the only thing you need to do for your server to be secured. </p>
+1 -1
View File
@@ -241,7 +241,7 @@ After configuring plug the configuration into the <code>Endpoint</code>.</p>
<pre><pre class="playground"><code class="language-rust">
<span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>let server_config = ServerConfig::with_single_cert(vec![cert]), key)?;
</span>let server_config = ServerConfig::with_single_cert(vec![cert], key)?;
<span class="boring">}
</span></code></pre></pre>
<p>This is the only thing you need to do for your server to be secured. </p>
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long