We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f2cd3 commit f7f7a6eCopy full SHA for f7f7a6e
Sources/httpd-helloworld/main.swift
@@ -1,6 +1,6 @@
1
#!/usr/bin/swift sh
2
3
-import Macro // @Macro-swift ~> 0.5.4
+import Macro // @Macro-swift
4
5
http.createServer { req, res in
6
// log request
@@ -21,6 +21,6 @@ http.createServer { req, res in
21
// finish up
22
res.end()
23
}
24
-.listen(1337, "0.0.0.0") { server in
25
- console.log("Server listening on http://0.0.0.0:1337/")
+.listen(1337) { server in
+ console.log("Server listening on http://*:1337/")
26
0 commit comments