mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 18:35:36 +08:00
Add config entry for OverseaLogPort (default: 8888)
This commit is contained in:
parent
85453c4837
commit
29f6d77e2f
@ -13,6 +13,7 @@ public final class Config {
|
|||||||
public String GameServerPublicIp = "";
|
public String GameServerPublicIp = "";
|
||||||
public int GameServerPort = 22102;
|
public int GameServerPort = 22102;
|
||||||
|
|
||||||
|
public int OverseaLogPort = 8888;
|
||||||
public int UploadLogPort = 80;
|
public int UploadLogPort = 80;
|
||||||
|
|
||||||
public String DatabaseUrl = "mongodb://localhost:27017";
|
public String DatabaseUrl = "mongodb://localhost:27017";
|
||||||
|
@ -410,7 +410,7 @@ public final class DispatchServer {
|
|||||||
Grasscutter.getLogger().info("Dispatch server started on port " + getAddress().getPort());
|
Grasscutter.getLogger().info("Dispatch server started on port " + getAddress().getPort());
|
||||||
|
|
||||||
// Logging servers
|
// Logging servers
|
||||||
HttpServer overseaLogServer = HttpServer.create(new InetSocketAddress(Grasscutter.getConfig().DispatchServerIp, 8888), 0);
|
HttpServer overseaLogServer = HttpServer.create(new InetSocketAddress(Grasscutter.getConfig().DispatchServerIp, Grasscutter.getConfig().OverseaLogPort), 0);
|
||||||
overseaLogServer.createContext( // overseauspider.yuanshen.com
|
overseaLogServer.createContext( // overseauspider.yuanshen.com
|
||||||
"/log",
|
"/log",
|
||||||
new DispatchHttpJsonHandler("{\"code\":0}")
|
new DispatchHttpJsonHandler("{\"code\":0}")
|
||||||
|
Loading…
Reference in New Issue
Block a user