From b495d7fa156ab11e340eed9ebb2ad0d66b898f20 Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Fri, 12 Aug 2011 11:25:35 -0500 Subject: [PATCH] Make Jetty SSL Connector respect :host option The :host option is used for the non-ssl connector, but not for the ssl connector. This means that the ssl connector binds to 0.0.0.0 even if :host is set, which is unexpected behavior. --- ring-jetty-adapter/src/ring/adapter/jetty.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/ring-jetty-adapter/src/ring/adapter/jetty.clj b/ring-jetty-adapter/src/ring/adapter/jetty.clj index 2af8d577..bd5ea5ce 100644 --- a/ring-jetty-adapter/src/ring/adapter/jetty.clj +++ b/ring-jetty-adapter/src/ring/adapter/jetty.clj @@ -24,6 +24,7 @@ (let [ssl-connector (SslSocketConnector.)] (doto ssl-connector (.setPort (options :ssl-port 443)) + (.setHost (options :host)) (.setKeystore (options :keystore)) (.setKeyPassword (options :key-password))) (when (options :truststore)