Browse Source

server now bound to 0.0.0.0

Firrincieli Marco (UniCredit) 10 years ago
parent
commit
a50dad64c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Scala/http4s/src/main/scala/WebServer.scala

+ 1 - 1
frameworks/Scala/http4s/src/main/scala/WebServer.scala

@@ -22,7 +22,7 @@ object WebServer extends App {
         .withContentType(Some(`Content-Type`(MediaType.`text/plain`)))
         .withContentType(Some(`Content-Type`(MediaType.`text/plain`)))
   }
   }
 
 
-  BlazeBuilder.bindHttp(8080)
+  BlazeBuilder.bindHttp(8080, "0.0.0.0")
     .mountService(service, "/")
     .mountService(service, "/")
     .run
     .run
     .awaitShutdown()
     .awaitShutdown()