aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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")
}