diff --git a/shadowsocks-csharp/Controller/Service/HttpHandler.cs b/shadowsocks-csharp/Controller/Service/HttpHandler.cs index 2f1f05b6..5f1e1836 100644 --- a/shadowsocks-csharp/Controller/Service/HttpHandler.cs +++ b/shadowsocks-csharp/Controller/Service/HttpHandler.cs @@ -60,8 +60,7 @@ namespace Shadowsocks.Controller.Service private void OnException(Exception ex, object state) { - Logging.LogUsefulException(ex); - Close(); + throw ex; } private static readonly Regex HttpRequestHeaderRegex = new Regex(@"^([A-Z]+?) ([^\s]+) HTTP/1\.\d$"); diff --git a/shadowsocks-csharp/Controller/ShadowsocksController.cs b/shadowsocks-csharp/Controller/ShadowsocksController.cs index 3e12bddf..79e0d152 100644 --- a/shadowsocks-csharp/Controller/ShadowsocksController.cs +++ b/shadowsocks-csharp/Controller/ShadowsocksController.cs @@ -463,6 +463,7 @@ namespace Shadowsocks.Controller services.Add(_pacServer); services.Add(tcpRelay); services.Add(udpRelay); + //services.Add(new Http2Socks5(_config.localPort)); _listener = new Listener(services); _listener.Start(_config); }