Browse Source

fixed localhost error

whiplash 10 năm trước cách đây
mục cha
commit
c637d8d8d5

+ 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
   val api: Service[Request, Response] = (json :+: plaintext).toService
 
 
   Await.ready(
   Await.ready(
-    Httpx.serve("localhost:9000", api)
+    Httpx.serve(":9000", api)
   )
   )
 }
 }