mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 15:31:53 +08:00
feat: show urlPattern option when needed
This commit is contained in:
@@ -47,3 +47,17 @@ export function formatBytes(bytes: number) {
|
||||
const kbValue = Number.parseFloat((bytes / k ** 1).toFixed(1));
|
||||
return `${kbValue} ${sizes[1]}`;
|
||||
}
|
||||
|
||||
export function shouldHidden(shellType: string | undefined) {
|
||||
if (shellType === undefined) {
|
||||
return false;
|
||||
}
|
||||
return (
|
||||
shellType.endsWith("Listener") ||
|
||||
shellType.endsWith("Valve") ||
|
||||
shellType.startsWith("Agent") ||
|
||||
shellType.endsWith("Interceptor") ||
|
||||
shellType.endsWith("NettyHandler") ||
|
||||
shellType.endsWith("WebFilter")
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user