Browse Source

start pac server even when local failed to start

tags/2.3
clowwindy 9 years ago
parent
commit
59976979bd
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      shadowsocks-csharp/Controller/ShadowsocksController.cs

+ 8
- 1
shadowsocks-csharp/Controller/ShadowsocksController.cs View File

@@ -41,13 +41,20 @@ namespace Shadowsocks.Controller
try try
{ {
local.Start(); local.Start();
}
catch (Exception e)
{
Console.WriteLine(e);
}
try
{
pacServer = new PACServer(); pacServer = new PACServer();
pacServer.PACFileChanged += pacServer_PACFileChanged; pacServer.PACFileChanged += pacServer_PACFileChanged;
pacServer.Start(_config); pacServer.Start(_config);
} }
catch (Exception e) catch (Exception e)
{ {
Console.WriteLine(e.Message);
Console.WriteLine(e);
} }
UpdateSystemProxy(); UpdateSystemProxy();


Loading…
Cancel
Save