Skip to content

Commit

Permalink
It now can bind on correct addr (#2254)
Browse files Browse the repository at this point in the history
Now Grasscutter will bind on address specified in config.json (bindAddress), instead of 0.0.0.0
  • Loading branch information
thememika authored Jul 8, 2023
1 parent 5090b17 commit 47186a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/emu/grasscutter/server/http/HttpServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private static Server createServer() {
}

serverConnector.setPort(HTTP_INFO.bindPort);
serverConnector.setHost(HTTP_INFO.bindAddress);
server.setConnectors(new ServerConnector[]{serverConnector});

return server;
Expand Down

0 comments on commit 47186a4

Please sign in to comment.