fix(ttyd): add -W writable and -i 127.0.0.1 flags
Made-with: Cursor
This commit is contained in:
@@ -129,7 +129,7 @@ async function startTtyd() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const shell = fs.existsSync('/bin/bash') ? '/bin/bash' : '/bin/sh';
|
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',
|
stdio: 'ignore',
|
||||||
detached: true,
|
detached: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user