mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
feat: support Tomcat Jakarta WebSocket
This commit is contained in:
+2
-2
@@ -61,7 +61,7 @@ public class ShellAssertionTool {
|
||||
shellUrl = url + urlPattern;
|
||||
}
|
||||
|
||||
if (shellType.equals(ShellType.WEBSOCKET)) {
|
||||
if (shellType.endsWith(ShellType.WEBSOCKET)) {
|
||||
urlPattern = "/" + shellTool + shellType + packer.name();
|
||||
URL url1 = new URL(url);
|
||||
shellUrl = "ws://" + url1.getHost() + ":" + url1.getPort() + url1.getPath() + urlPattern;
|
||||
@@ -97,7 +97,7 @@ public class ShellAssertionTool {
|
||||
testGodzillaIsOk(shellUrl, ((GodzillaConfig) generateResult.getShellToolConfig()));
|
||||
break;
|
||||
case Command:
|
||||
if (shellType.equals(ShellType.WEBSOCKET)) {
|
||||
if (shellType.endsWith(ShellType.WEBSOCKET)) {
|
||||
testWebSocketCommandIsOk(shellUrl, ((CommandConfig) generateResult.getShellToolConfig()));
|
||||
} else {
|
||||
testCommandIsOk(shellUrl, ((CommandConfig) generateResult.getShellToolConfig()));
|
||||
|
||||
Reference in New Issue
Block a user