Browse Source

fixed localhost error

whiplash 10 năm trước cách đây
mục cha
commit
c637d8d8d5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
   )
 }