Browse Source

Accept non-localhost connections in pedestal (#2632)

Without this, the client machine running wrk cannot connect to the
server and so pedestal gets zero RPS.
Michael Hixson 8 years ago
parent
commit
fb89d10e72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Clojure/pedestal/src/pedestal/pdg.clj

+ 1 - 1
frameworks/Clojure/pedestal/src/pedestal/pdg.clj

@@ -266,7 +266,7 @@
   [service-map server-opts]
   (let [handler (::handler service-map)
         {:keys [host port join?]
-         :or {host "127.0.0.1"
+         :or {host "0.0.0.0"
               port 8080
               join? false}} server-opts
         addr (InetSocketAddress. ^String host ^int port)