fix(cmd): url encode the local target address for connect rdp (#1665)
This commit is contained in:
1 parent
eaf31ef17a
commit
e73ee77ea6
1 file changed
+2
-1
@@ -5,6 +5,7 @@ package connect
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
@@ -58,7 +59,7 @@ func (r *rdpFlags) buildArgs(c *Command, port, ip, addr string) []string {
|
||||
case "mstsc.exe":
|
||||
args = append(args, "/v", addr)
|
||||
case "open":
|
||||
args = append(args, "-n", "-W", fmt.Sprintf("rdp://full%saddress=s:%s", "%20", addr))
|
||||
args = append(args, "-n", "-W", fmt.Sprintf("rdp://full%saddress=s%s%s", "%20", "%3A", url.QueryEscape(addr)))
|
||||
}
|
||||
return args
|
||||
}
|
||||
Reference in new issue
Block a user