Skip to content

Commit d9004d6

Browse files
scramjetDerGuteMoritz
authored andcommitted
Fix failure to initialise Netty channel when using :manual-ssl? option
Fixes #751
1 parent 6259a1e commit d9004d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/http/server.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@
641641
:handler handler
642642
:server? true
643643
:pipeline pipeline)]
644-
(cond ssl?
644+
(cond (and ssl? ssl-context)
645645
(let [ssl-handler (netty/ssl-handler (.channel pipeline) ssl-context)]
646646
(log/debug "Setting up secure HTTP server pipeline.")
647647
(log/debug "ALPN HTTP versions:" (mapv str (.nextProtocols ssl-context)))

0 commit comments

Comments
 (0)