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, });