It now can bind on correct addr (#2254)

Now Grasscutter will bind on address specified in config.json (bindAddress), instead of 0.0.0.0
This commit is contained in:
y.mi 2023-07-08 19:27:12 +03:00 committed by GitHub
parent 5090b17b80
commit 47186a47b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,7 @@ public final class HttpServer {
}
serverConnector.setPort(HTTP_INFO.bindPort);
serverConnector.setHost(HTTP_INFO.bindAddress);
server.setConnectors(new ServerConnector[]{serverConnector});
return server;