Skip to content

Commit 609f95a

Browse files
rcw5maaslalani
authored andcommitted
ttyd listens on loopback interface only
1 parent 56e4d7b commit 609f95a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tty.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func randomPort() int {
2626
func StartTTY(port int) *exec.Cmd {
2727
args := []string{
2828
fmt.Sprintf("--port=%d", port),
29+
"--interface", "127.0.0.1",
2930
"-t", "rendererType=canvas",
3031
"-t", "disableResizeOverlay=true",
3132
"-t", "cursorBlink=true",

0 commit comments

Comments
 (0)