watch PAC changes

This commit is contained in:
clowwindy
2014-11-07 22:06:22 +08:00
parent ce6d4964be
commit 085532e8fa
2 changed files with 36 additions and 0 deletions
@@ -46,6 +46,7 @@ namespace shadowsocks_csharp.Controller
{
local.Start();
pacServer = new PACServer();
pacServer.PACFileChanged += pacServer_PACFileChanged;
pacServer.Start();
}
catch (Exception e)
@@ -125,5 +126,11 @@ namespace shadowsocks_csharp.Controller
SystemProxy.Disable();
}
}
private void pacServer_PACFileChanged(object sender, EventArgs e)
{
updateSystemProxy();
}
}
}