Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make Jetty SSL Connector respect :host option #27

Merged
merged 1 commit into from

2 participants

@thobbs

In ring.adapter.jetty/run-jetty, 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.

@thobbs thobbs 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.
b495d7f
@weavejester weavejester merged commit 5feb755 into mmcgrana:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 12, 2011
  1. @thobbs

    Make Jetty SSL Connector respect :host option

    thobbs authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  ring-jetty-adapter/src/ring/adapter/jetty.clj
View
1  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)
Something went wrong with that request. Please try again.