From c2808407332308cf2f32792e2d96bdfa6f7ec75d Mon Sep 17 00:00:00 2001 From: Lonny Wong Date: Sun, 15 Oct 2023 21:29:45 +0800 Subject: [PATCH] support EnableDragFile option --- tssh/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tssh/login.go b/tssh/login.go index 21e5af5..7647761 100644 --- a/tssh/login.go +++ b/tssh/login.go @@ -973,7 +973,7 @@ func sshLogin(args *sshArgs, tty bool) (client *ssh.Client, session *ssh.Session // os.Stderr └────────┘ stderr └────────┘ trzszFilter := trzsz.NewTrzszFilter(os.Stdin, os.Stdout, serverIn, serverOut, trzsz.TrzszOptions{ TerminalColumns: int32(width), - DetectDragFile: args.DragFile, + DetectDragFile: args.DragFile || strings.ToLower(getExOptionConfig(args, "EnableDragFile")) == "yes", DetectTraceLog: args.TraceLog, })