1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-02-22 20:33:26 +00:00

Different attempt at the RDP/Putty fix.

This commit is contained in:
Ylian Saint-Hilaire
2021-02-03 11:29:44 -08:00
parent 101af85ebe
commit 63f651081f
5 changed files with 68 additions and 51 deletions

View File

@@ -21,7 +21,16 @@ namespace MeshCentralRouter
public int getLocalPort() { return (int)localNumericUpDown.Value; }
public int getRemotePort() { return (int)remoteNumericUpDown.Value; }
public string getRemoteIP() { return remoteIpTextBox.Text; }
public int getAppId() { return (int)appComboBox.SelectedIndex; }
public int getAppId() {
int x = (int)appComboBox.SelectedIndex;
if (x == 0) { return 0; } // Custom
if (x == 1) { return 1; } // HTTP
if (x == 2) { return 2; } // HTTPS
if (x == 3) { return 4; } // PuTTY
if (x == 4) { return 3; } // RDP
if (x == 5) { return 5; } // WinSCP
return x;
}
public NodeClass getNode() { return (NodeClass)nodeComboBox.SelectedItem; }
public void setNode(NodeClass node) { selectedNode = node; }
@@ -107,8 +116,8 @@ namespace MeshCentralRouter
{
if (appComboBox.SelectedIndex == 1) { remoteNumericUpDown.Value = 80; }
if (appComboBox.SelectedIndex == 2) { remoteNumericUpDown.Value = 443; }
if (appComboBox.SelectedIndex == 3) { remoteNumericUpDown.Value = 22; }
if (appComboBox.SelectedIndex == 4) { remoteNumericUpDown.Value = 3389; }
if (appComboBox.SelectedIndex == 3) { remoteNumericUpDown.Value = 3389; }
if (appComboBox.SelectedIndex == 4) { remoteNumericUpDown.Value = 22; }
if (appComboBox.SelectedIndex == 5) { remoteNumericUpDown.Value = 22; }
}