Browse Source

Merge remote-tracking branch 'origin/master'

Conflicts:
	shadowsocks-csharp/Controller/ShadowsocksController.cs
	shadowsocks-csharp/View/ConfigForm.cs
pull/45/head
wzxjohn 10 years ago
parent
commit
34c2133947
2 changed files with 9 additions and 8 deletions
  1. +7
    -6
      shadowsocks-csharp/Controller/ShadowsocksController.cs
  2. +2
    -2
      shadowsocks-csharp/View/ConfigForm.cs

+ 7
- 6
shadowsocks-csharp/Controller/ShadowsocksController.cs View File

@@ -19,6 +19,7 @@ namespace Shadowsocks.Controller
private Configuration _config;
private PolipoRunner polipoRunner;
private bool stopped = false;
private bool openOnLan;
public class PathEventArgs : EventArgs
{
@@ -39,16 +40,16 @@ namespace Shadowsocks.Controller
{
SetLog();
}
polipoRunner = new PolipoRunner();
polipoRunner = new PolipoRunner();
polipoRunner.Start(_config);
local = new Local(_config);
local = new Local(_config);
try
{
local.Start();
pacServer = new PACServer();
pacServer.PACFileChanged += pacServer_PACFileChanged;
pacServer.Start(_config);
pacServer.PACFileChanged += pacServer_PACFileChanged;
pacServer.Start(_config);
}
catch (Exception e)
{
@@ -57,7 +58,7 @@ namespace Shadowsocks.Controller
UpdateSystemProxy();
}
public Server GetCurrentServer()
{
return _config.GetCurrentServer();


+ 2
- 2
shadowsocks-csharp/View/ConfigForm.cs View File

@@ -280,8 +280,8 @@ namespace Shadowsocks.View
{
MessageBox.Show("Please add at least one server");
return;
}
controller.SaveServers(_modifiedConfiguration.configs, _modifiedConfiguration.noChange);
}
controller.SaveServers(_modifiedConfiguration.configs, _modifiedConfiguration.noChange);
this.Hide();
ShowFirstTimeBalloon();
}


Loading…
Cancel
Save