Add option to disable native code.
This commit is contained in:
parent
fa828eba31
commit
d1e1ce4cdb
@ -199,6 +199,8 @@ public class BungeeCord extends ProxyServer
|
||||
System.setErr( new PrintStream( new LoggingOutputStream( logger, Level.SEVERE ), true ) );
|
||||
System.setOut( new PrintStream( new LoggingOutputStream( logger, Level.INFO ), true ) );
|
||||
|
||||
if ( !Boolean.getBoolean( "net.md_5.bungee.native.disable" ) )
|
||||
{
|
||||
if ( EncryptionUtil.nativeFactory.load() )
|
||||
{
|
||||
logger.info( "Using OpenSSL based native cipher." );
|
||||
@ -214,6 +216,7 @@ public class BungeeCord extends ProxyServer
|
||||
logger.info( "Using standard Java compressor. To enable zero copy compression, run on 64 bit Linux" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Start this proxy instance by loading the configuration, plugins and
|
||||
|
Loading…
Reference in New Issue
Block a user