Skip to content
Snippets Groups Projects
Unverified Commit e7e4fd6f authored by Noah Moss's avatar Noah Moss Committed by GitHub
Browse files

Fix parsing of MB_JETTY_SKIP_SNI (#44651)

parent e5e0c2cc
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@
:trust-password (config/config-str :mb-jetty-ssl-truststore-password)
:client-auth (when (config/config-bool :mb-jetty-ssl-client-auth)
:need)
:sni-host-check? (when (config/config-str :mb-jetty-skip-sni)
:sni-host-check? (when (config/config-bool :mb-jetty-skip-sni)
false)}))
(defn- jetty-config []
......
......@@ -6,16 +6,18 @@
(deftest config-test
(testing "Make sure our Jetty config functions work as expected/we don't accidentally break things (#9333)"
(with-redefs [config/config-str (constantly "10")]
(with-redefs [config/config-str (constantly "10")
config/config-bool (constantly true)]
(is (= {:keystore "10"
:max-queued 10
:request-header-size 10
:port 10
:min-threads 10
:host "10"
:daemon? false
:daemon? true
:ssl? true
:sni-host-check? false
:client-auth :need
:trust-password "10"
:key-password "10"
:truststore "10"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment