Explorar o código

fixed localhost error

whiplash %!s(int64=10) %!d(string=hai) anos
pai
achega
c637d8d8d5
Modificáronse 1 ficheiros con 1 adicións e 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)
   )
 }