aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
commitb4edc19ef8e50e9b987c2560b0c9e63faac37465 (patch)
tree8e9a8056825d43f1eed54f445818ae45aab20377
parentfolding functionally (diff)
downloadhardflip-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.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/c_exec.go b/c_exec.go
index 5b1a9e1..8b37976 100644
--- a/c_exec.go
+++ b/c_exec.go
@@ -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")
}