From 2444dd15ab7f62dc6df4600b08a9865188447d8d Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 10 Jul 2014 10:39:58 +1000 Subject: [PATCH] Fix #1106 - plugins using ssl throwing exceptions --- .../java/net/md_5/bungee/BungeeSecurityManager.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java b/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java index 047eb1ad..e5b6f183 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java @@ -23,9 +23,19 @@ public class BungeeSecurityManager extends SecurityManager 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 if ( loader != null ) { + System.out.println( loader ); AccessControlException ex = new AccessControlException( "Plugin violation: " + text ); if ( ENFORCE ) {