forked from I2P_Developers/i2p.i2p
Streaming: Workaround for jwebcache and i2phex (ticket #1231)
This commit is contained in:
@@ -225,7 +225,10 @@ public class I2PSocketManagerFactory {
|
||||
|
||||
private static I2PSocketManager createManager(I2PSession session, Properties opts, String name) {
|
||||
I2PAppContext context = I2PAppContext.getGlobalContext();
|
||||
String classname = opts.getProperty(PROP_MANAGER, DEFAULT_MANAGER);
|
||||
// As of 0.9.12, ignore this setting, as jwebcache and i2phex set it to the old value.
|
||||
// There is no other valid manager.
|
||||
//String classname = opts.getProperty(PROP_MANAGER, DEFAULT_MANAGER);
|
||||
String classname = DEFAULT_MANAGER;
|
||||
try {
|
||||
Class<?> cls = Class.forName(classname);
|
||||
if (!I2PSocketManager.class.isAssignableFrom(cls))
|
||||
|
@@ -0,0 +1,13 @@
|
||||
package net.i2p.client.streaming;
|
||||
|
||||
/**
|
||||
* Moved to net.i2p.client.streaming.impl in 0.9.10.
|
||||
* Restored as a dummy class in 0.9.12, as i2phex imports it and
|
||||
* calls I2PSocketManagerFull.class.getName() to pass to I2PSocketManagerFactory.
|
||||
* I2PSocketManagerFactory ignores the class setting as of 0.9.12.
|
||||
* This does not implement I2PSocketManager. Do not use.
|
||||
*
|
||||
* @since 0.9.12
|
||||
* @deprecated
|
||||
*/
|
||||
public class I2PSocketManagerFull {}
|
Reference in New Issue
Block a user