mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-22 03:45:10 +01:00
Fix connection bugs without removing binding address (#993)
* Fix connection bugs according to #921 Fix this for connect to game by local device or remote devices according to #921 * Fix connection bugs according to #921 same * Update GameServer.java * fix build * Update GameServer.java
This commit is contained in:
@@ -129,7 +129,11 @@ public final class HttpServer {
|
||||
*/
|
||||
public void start() {
|
||||
// Attempt to start the HTTP server.
|
||||
this.express.listen(HTTP_INFO.bindAddress, HTTP_INFO.bindPort);
|
||||
if(HTTP_INFO.bindAddress.equals("")){
|
||||
this.express.listen(HTTP_INFO.bindPort);
|
||||
}else{
|
||||
this.express.listen(HTTP_INFO.bindAddress, HTTP_INFO.bindPort);
|
||||
}
|
||||
|
||||
// Log bind information.
|
||||
Grasscutter.getLogger().info(translate("messages.dispatch.port_bind", Integer.toString(this.express.raw().port())));
|
||||
|
||||
Reference in New Issue
Block a user