1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2025-12-25 12:43:16 +00:00

Manual proxy improvements.

This commit is contained in:
Ylian Saint-Hilaire
2022-05-19 00:14:23 -07:00
parent b8f14536fb
commit bafc19f99f
12 changed files with 3352 additions and 1021 deletions

View File

@@ -30,6 +30,10 @@ namespace MeshCentralRouter
{
try { Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", name, value.ToString()); } catch (Exception) { }
}
public static void SetRegValue(string name, int value)
{
try { Registry.SetValue(@"HKEY_CURRENT_USER\SOFTWARE\Open Source\MeshCentral Router", name, value.ToString()); } catch (Exception) { }
}
/// <summary>
/// This function querys the registry. If the key is found it returns the value as a string
/// </summary>
@@ -55,6 +59,11 @@ namespace MeshCentralRouter
try { return bool.Parse(GetRegValue(name, value.ToString())); } catch (Exception) { return value; }
}
public static int GetRegValue(string name, int value)
{
try { return int.Parse(GetRegValue(name, value.ToString())); } catch (Exception) { return value; }
}
public static void SetApplications(List<string[]> apps)
{
ClearApplications();