Skip to content

Commit b68d8fe

Browse files
committed
Bind interface on 127.0.0.1
1 parent 3280429 commit b68d8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/eigr/spawn/Spawn.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public ActorRef createActorRef(String system, String name, String parent) {
7676
}
7777

7878
private void startServer() throws IOException {
79-
HttpServer httpServer = HttpServer.create(new InetSocketAddress(this.port), 0);
79+
HttpServer httpServer = HttpServer.create(new InetSocketAddress("127.0.0.1", this.port), 0);
8080
httpServer.createContext("/api/v1/actors/actions", new ActorServiceHandler(this.system, this.entities));
8181
//httpServer.setExecutor(Executors.newVirtualThreadPerTaskExecutor());
8282
httpServer.setExecutor(Executors.newCachedThreadPool());

0 commit comments

Comments
 (0)