1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-06 00:13:33 +00:00

Added support for changing the RDP port.

This commit is contained in:
Ylian Saint-Hilaire
2020-03-21 19:34:06 -07:00
parent e57fdc8aed
commit c236c7ccb8
8 changed files with 2082 additions and 2 deletions

View File

@@ -157,6 +157,15 @@ namespace MeshCentralRouter
}
}
public void setRdpPort(NodeClass node, int port)
{
if (wc != null)
{
if (debug) { File.AppendAllText("debug.log", "SetRdpPort\r\n"); }
wc.WriteStringWebSocket("{\"action\":\"changedevice\",\"nodeid\":\"" + node.nodeid + "\",\"rdpport\":" + port + "}");
}
}
public void processServerData(string data)
{
if (debug) { File.AppendAllText("debug.log", "ServerData-" + data + "\r\n"); }
@@ -246,6 +255,7 @@ namespace MeshCentralRouter
n.name = (string)node["name"];
if (node.ContainsKey("conn")) { n.conn = (int)node["conn"]; }
n.icon = (int)node["icon"];
if (node.ContainsKey("rdpport")) { n.rdpport = (int)node["rdpport"]; }
nodes[n.nodeid] = n;
}
if (onNodesChanged != null) onNodesChanged();