Browse Source

code style

tags/3.0
Licshee 8 years ago
parent
commit
2c90e0fcb1
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      shadowsocks-csharp/Controller/System/SystemProxy.cs

+ 9
- 5
shadowsocks-csharp/Controller/System/SystemProxy.cs View File

@@ -102,12 +102,16 @@ namespace Shadowsocks.Controller
var connections = registry.GetValueNames();
foreach (var each in connections)
{
if (!(each.Equals("DefaultConnectionSettings")
|| each.Equals("LAN Connection")
|| each.Equals("SavedLegacySettings")))
switch (each)
{
//set all the connections's proxy as the lan
registry.SetValue(each, defaultValue);
case "DefaultConnectionSettings":
case "LAN Connection":
case "SavedLegacySettings":
continue;
default:
//set all the connections's proxy as the lan
registry.SetValue(each, defaultValue);
continue;
}
}
NotifyIE();


Loading…
Cancel
Save