mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 11:15:47 +01:00
Fix #1106 - plugins using ssl throwing exceptions
This commit is contained in:
parent
2dd3d2101d
commit
2444dd15ab
@ -23,9 +23,19 @@ public class BungeeSecurityManager extends SecurityManager
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow external packages from the system class loader to create threads.
|
||||||
|
if ( loader == null )
|
||||||
|
{
|
||||||
|
if ( !context[i].getName().startsWith( "java.lang" ) )
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Everyone but system can't do anything
|
// Everyone but system can't do anything
|
||||||
if ( loader != null )
|
if ( loader != null )
|
||||||
{
|
{
|
||||||
|
System.out.println( loader );
|
||||||
AccessControlException ex = new AccessControlException( "Plugin violation: " + text );
|
AccessControlException ex = new AccessControlException( "Plugin violation: " + text );
|
||||||
if ( ENFORCE )
|
if ( ENFORCE )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user