We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5b1849 + 1e0695f commit ffc2cb3Copy full SHA for ffc2cb3
1 file changed
Sources/MacLocalAPI/Server.swift
@@ -36,7 +36,7 @@ class Server {
36
37
private func configure() throws {
38
app.http.server.configuration.port = port
39
- app.http.server.configuration.hostname = "0.0.0.0"
+ app.http.server.configuration.hostname = "127.0.0.1"
40
41
try routes()
42
}
@@ -84,7 +84,7 @@ class Server {
84
print("Press Ctrl+C to stop the server")
85
86
// Start the server
87
- try await app.server.start(address: .hostname("0.0.0.0", port: port))
+ try await app.server.start(address: .hostname("127.0.0.1", port: port))
88
89
// Wait indefinitely (until shutdown is called)
90
try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
0 commit comments