mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FEATURE] netty.clientEnabled
This commit is contained in:
parent
833c322812
commit
e0c6386d23
2 changed files with 2 additions and 1 deletions
|
@ -185,6 +185,7 @@ public class NettyConfig
|
||||||
{
|
{
|
||||||
public String bindAddress;
|
public String bindAddress;
|
||||||
public int port;
|
public int port;
|
||||||
|
public boolean clientEnabled;
|
||||||
public String launcherURL;
|
public String launcherURL;
|
||||||
public String launcherEXEURL;
|
public String launcherEXEURL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,7 +130,7 @@ public Path process(Path inputJar) throws IOException {
|
||||||
server.buildHookManager.hook(context);
|
server.buildHookManager.hook(context);
|
||||||
jaConfigurator.setAddress(server.config.getAddress());
|
jaConfigurator.setAddress(server.config.getAddress());
|
||||||
jaConfigurator.setPort(server.config.port);
|
jaConfigurator.setPort(server.config.port);
|
||||||
if(server.config.netty != null)
|
if(server.config.netty.clientEnabled)
|
||||||
jaConfigurator.setNettyPort(server.config.netty.port);
|
jaConfigurator.setNettyPort(server.config.netty.port);
|
||||||
if(server.config.guardLicense != null)
|
if(server.config.guardLicense != null)
|
||||||
jaConfigurator.setGuardLicense(server.config.guardLicense.name, server.config.guardLicense.key, server.config.guardLicense.encryptKey);
|
jaConfigurator.setGuardLicense(server.config.guardLicense.name, server.config.guardLicense.key, server.config.guardLicense.encryptKey);
|
||||||
|
|
Loading…
Reference in a new issue