Browse files

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 even if :host is set, which
is unexpected behavior.
  • Loading branch information...
1 parent 6198239 commit b495d7fa156ab11e340eed9ebb2ad0d66b898f20 @thobbs thobbs committed Aug 12, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 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)

0 comments on commit b495d7f

Please sign in to comment.