From 59976979bd7a6f503b9d667beebb386f58bfb025 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sun, 16 Nov 2014 13:17:48 +0800 Subject: [PATCH] start pac server even when local failed to start --- shadowsocks-csharp/Controller/ShadowsocksController.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Controller/ShadowsocksController.cs b/shadowsocks-csharp/Controller/ShadowsocksController.cs index b28e2105..cb6cce11 100755 --- a/shadowsocks-csharp/Controller/ShadowsocksController.cs +++ b/shadowsocks-csharp/Controller/ShadowsocksController.cs @@ -41,13 +41,20 @@ namespace Shadowsocks.Controller try { local.Start(); + } + catch (Exception e) + { + Console.WriteLine(e); + } + try + { pacServer = new PACServer(); pacServer.PACFileChanged += pacServer_PACFileChanged; pacServer.Start(_config); } catch (Exception e) { - Console.WriteLine(e.Message); + Console.WriteLine(e); } UpdateSystemProxy();