mirror of
https://github.com/qi4L/JYso.git
synced 2026-09-21 22:40:43 +08:00
fix: RMI重构修复,已经可用
This commit is contained in:
@@ -132,7 +132,6 @@ public class RMIServer implements Runnable {
|
||||
doMessage(s, in, out);
|
||||
break;
|
||||
default:
|
||||
case TransportConstants.MultiplexProtocol:
|
||||
System.err.println("Unsupported protocol");
|
||||
s.close();
|
||||
continue;
|
||||
@@ -148,11 +147,9 @@ public class RMIServer implements Runnable {
|
||||
e.printStackTrace(System.err);
|
||||
} finally {
|
||||
System.out.println(Ansi.ansi().fgRgb(255, 165, 0).a(" Closing connection").reset());
|
||||
if (s != null) {
|
||||
s.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
if (s != null) {
|
||||
s.close();
|
||||
|
||||
@@ -50,7 +50,7 @@ public class Basic {
|
||||
return new Reference("Foo", className, Config.codeBase);
|
||||
}
|
||||
|
||||
private static void parse(String base) throws Exception {
|
||||
private static void parse(String base) {
|
||||
System.out.println("- JNDI RMI Remote Reference Links ");
|
||||
try {
|
||||
String normalized = base.replace('\\', '/');
|
||||
|
||||
Reference in New Issue
Block a user