From 1ff9fd90e54486cac5add9333eb5379d19aba5d2 Mon Sep 17 00:00:00 2001 From: stswangzhiping <59632378+stswangzhiping@users.noreply.github.com> Date: Sun, 15 Mar 2026 23:22:05 +0800 Subject: [PATCH] fix(ttyd): add -W writable and -i 127.0.0.1 flags Made-with: Cursor --- lib/frpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frpc.js b/lib/frpc.js index 7b0b266..f48ede0 100644 --- a/lib/frpc.js +++ b/lib/frpc.js @@ -129,7 +129,7 @@ async function startTtyd() { try { const shell = fs.existsSync('/bin/bash') ? '/bin/bash' : '/bin/sh'; - const proc = spawn(TTYD_BIN, ['-p', String(TTYD_PORT), shell], { + const proc = spawn(TTYD_BIN, ['-p', String(TTYD_PORT), '-i', '127.0.0.1', '-W', shell], { stdio: 'ignore', detached: true, });