Browse Source

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 years ago
parent
commit
fff8a75bb8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Clojure/macchiato/hello/src/hello/core.cljs

+ 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)