mirror of
https://github.com/n0-computer/noq.git
synced 2026-10-03 12:40:46 +00:00
deploy: 0e940e11e9
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
@@ -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
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user