mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 03:42:53 +08:00
Add getter for DispatchServer's HttpServer
This commit is contained in:
parent
614477181f
commit
b2f1142116
@ -43,6 +43,7 @@ public final class DispatchServer {
|
||||
|
||||
public String regionListBase64;
|
||||
public HashMap<String, RegionData> regions;
|
||||
private HttpServer server;
|
||||
|
||||
public DispatchServer() {
|
||||
this.regions = new HashMap<String, RegionData>();
|
||||
@ -54,6 +55,10 @@ public final class DispatchServer {
|
||||
this.initRegion();
|
||||
}
|
||||
|
||||
public HttpServer getServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
public InetSocketAddress getAddress() {
|
||||
return address;
|
||||
}
|
||||
@ -200,7 +205,6 @@ public final class DispatchServer {
|
||||
}
|
||||
|
||||
public void start() throws Exception {
|
||||
HttpServer server;
|
||||
if (Grasscutter.getConfig().getDispatchOptions().UseSSL) {
|
||||
HttpsServer httpsServer = HttpsServer.create(getAddress(), 0);
|
||||
SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||
|
Loading…
Reference in New Issue
Block a user