[FEATURE] netty.clientEnabled

This commit is contained in:
Gravit 2019-02-17 19:13:36 +07:00
parent 833c322812
commit e0c6386d23
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 2 additions and 1 deletions

View file

@ -185,6 +185,7 @@ public class NettyConfig
{
public String bindAddress;
public int port;
public boolean clientEnabled;
public String launcherURL;
public String launcherEXEURL;
}

View file

@ -130,7 +130,7 @@ public Path process(Path inputJar) throws IOException {
server.buildHookManager.hook(context);
jaConfigurator.setAddress(server.config.getAddress());
jaConfigurator.setPort(server.config.port);
if(server.config.netty != null)
if(server.config.netty.clientEnabled)
jaConfigurator.setNettyPort(server.config.netty.port);
if(server.config.guardLicense != null)
jaConfigurator.setGuardLicense(server.config.guardLicense.name, server.config.guardLicense.key, server.config.guardLicense.encryptKey);