Kaynağa Gözat

Don't restrict macchiato requests to localhost by default

The load generator (wrk) is running on a different machine than the
HTTP server, so restricting the HTTP server to only accept requests from
localhost means all the tests fail.  This change should fix that.
Michael Hixson 7 yıl önce
ebeveyn
işleme
fff8a75bb8

+ 1 - 1
frameworks/Clojure/macchiato/hello/src/hello/core.cljs

@@ -10,7 +10,7 @@
 
 (defn app []
   (mount/start)
-  (let [host (or (:host @env) "127.0.0.1")
+  (let [host (or (:host @env) "0.0.0.0")
         port (or (some-> @env :port js/parseInt) 3000)]
     (http/start
       {:handler    (wrap-defaults router)