Skip to content

Commit

Permalink
fix bug in boring server
Browse files Browse the repository at this point in the history
  • Loading branch information
GlenDC committed Sep 19, 2024
1 parent d7d1480 commit 4cde0e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rama-tls/src/boring/server/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,13 @@ where
None
};

if !tls_config
if tls_config
.alpn_protocols
.as_ref()
.map(|v| !v.is_empty())
.unwrap_or_default()
{
trace!("tls boring server service: set alpn protos");
let mut buf = vec![];
for alpn in tls_config.alpn_protocols.iter().flatten() {
alpn.encode_wire_format(&mut buf)
Expand Down

0 comments on commit 4cde0e8

Please sign in to comment.