mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-03-13 23:47:23 +08:00
Bug fixes.
* Fix default port for the game server * Fix the returning region info
This commit is contained in:
parent
d575b79a0c
commit
2cd1d32fbe
@ -125,8 +125,8 @@ public final class DispatchServer {
|
|||||||
servers.add(server);
|
servers.add(server);
|
||||||
|
|
||||||
RegionInfo serverRegion = regionQuery.getRegionInfo().toBuilder()
|
RegionInfo serverRegion = regionQuery.getRegionInfo().toBuilder()
|
||||||
.setGateserverIp(lr(DISPATCH_INFO.accessAddress, DISPATCH_INFO.bindAddress))
|
.setGateserverIp(lr(GAME_INFO.accessAddress, GAME_INFO.bindAddress))
|
||||||
.setGateserverPort(lr(DISPATCH_INFO.accessPort, DISPATCH_INFO.bindPort))
|
.setGateserverPort(lr(GAME_INFO.accessPort, GAME_INFO.bindPort))
|
||||||
.setSecretKey(ByteString.copyFrom(FileUtils.read(KEYS_FOLDER + "/dispatchSeed.bin")))
|
.setSecretKey(ByteString.copyFrom(FileUtils.read(KEYS_FOLDER + "/dispatchSeed.bin")))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
@ -126,9 +126,9 @@ public class ConfigContainer {
|
|||||||
/* This is the address used in the default region. */
|
/* This is the address used in the default region. */
|
||||||
public String accessAddress = "127.0.0.1";
|
public String accessAddress = "127.0.0.1";
|
||||||
|
|
||||||
public int bindPort = 443;
|
public int bindPort = 22102;
|
||||||
/* This is the port used in the default region. */
|
/* This is the port used in the default region. */
|
||||||
public int accessPort = 443;
|
public int accessPort = 22102;
|
||||||
|
|
||||||
public GameOptions gameOptions = new GameOptions();
|
public GameOptions gameOptions = new GameOptions();
|
||||||
public JoinOptions joinOptions = new JoinOptions();
|
public JoinOptions joinOptions = new JoinOptions();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user