From b4edc19ef8e50e9b987c2560b0c9e63faac37465 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 9 Jan 2024 20:20:20 +0100 Subject: added rdp port handling --- c_exec.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'c_exec.go') 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") } -- cgit v1.2.3