Explorar el Código

fixed localhost error

whiplash hace 10 años
padre
commit
c637d8d8d5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      frameworks/Scala/finch/src/main/scala/WebServer.scala

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

@@ -33,6 +33,6 @@ object WebServer extends App {
   val api: Service[Request, Response] = (json :+: plaintext).toService
 
   Await.ready(
-    Httpx.serve("localhost:9000", api)
+    Httpx.serve(":9000", api)
   )
 }