diff options
author | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-09 20:20:20 +0100 |
commit | b4edc19ef8e50e9b987c2560b0c9e63faac37465 (patch) | |
tree | 8e9a8056825d43f1eed54f445818ae45aab20377 | |
parent | folding functionally (diff) | |
download | hardflip-b4edc19ef8e50e9b987c2560b0c9e63faac37465.tar.gz hardflip-b4edc19ef8e50e9b987c2560b0c9e63faac37465.tar.bz2 hardflip-b4edc19ef8e50e9b987c2560b0c9e63faac37465.tar.xz hardflip-b4edc19ef8e50e9b987c2560b0c9e63faac37465.tar.zst hardflip-b4edc19ef8e50e9b987c2560b0c9e63faac37465.zip |
added rdp port handling
Diffstat (limited to '')
-rw-r--r-- | c_exec.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -111,6 +111,9 @@ func c_format_rdp(host *HostNode) []string { if len(host.Pass) > 0 { cmd_fmt = append(cmd_fmt, "/p:" + host.Pass) } + if host.Port != 0 { + cmd_fmt = append(cmd_fmt, "/port:" + strconv.Itoa(int(host.Port))) + } if host.Dynamic == true { cmd_fmt = append(cmd_fmt, "/dynamic-resolution") } |