Skip to content

Commit aea6485

Browse files
Update lib/mcp/server.js
Co-authored-by: Copilot <[email protected]>
1 parent f5c335b commit aea6485

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/mcp/server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ function detectSandbox() {
4040
}
4141

4242
// Check if we're running with restricted permissions
43-
if (process.getuid && process.getuid() !== process.geteuid()) {
43+
if (
44+
typeof process.getuid === 'function' &&
45+
typeof process.geteuid === 'function' &&
46+
process.getuid() !== process.geteuid()
47+
) {
4448
indicators.isSandboxed = true;
4549
indicators.reasons.push('UID mismatch (setuid)');
4650
}

0 commit comments

Comments
 (0)