Archived
1
0
Fork 0
forked from Moux23333/FreeSR
This repository has been archived on 2024-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Tool.Proxy/Program.cs
2024-01-27 21:06:07 +08:00

25 lines
No EOL
686 B
C#

namespace FreeSR.Tool.Proxy
{
internal static class Program
{
private const string Title = "FreeSR Proxy";
private static ProxyService s_proxyService;
private static EventHandler s_processExitHandler = new EventHandler(OnProcessExit);
private static void Main(string[] args)
{
Console.Title = Title;
s_proxyService = new ProxyService("127.0.0.1", 8888);
AppDomain.CurrentDomain.ProcessExit += s_processExitHandler;
Thread.Sleep(-1);
}
private static void OnProcessExit(object sender, EventArgs args)
{
s_proxyService.Shutdown();
}
}
}