Browse Source

Logging exception

tags/3.4.0
noisyfox 8 years ago
parent
commit
566a0fcfa5
2 changed files with 2 additions and 2 deletions
  1. +2
    -1
      shadowsocks-csharp/Controller/Service/HttpHandler.cs
  2. +0
    -1
      shadowsocks-csharp/Controller/ShadowsocksController.cs

+ 2
- 1
shadowsocks-csharp/Controller/Service/HttpHandler.cs View File

@@ -60,7 +60,8 @@ namespace Shadowsocks.Controller.Service


private void OnException(Exception ex, object state) private void OnException(Exception ex, object state)
{ {
throw ex;
Logging.LogUsefulException(ex);
Close();
} }


private static readonly Regex HttpRequestHeaderRegex = new Regex(@"^([A-Z]+?) ([^\s]+) HTTP/1\.\d$"); private static readonly Regex HttpRequestHeaderRegex = new Regex(@"^([A-Z]+?) ([^\s]+) HTTP/1\.\d$");


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

@@ -462,7 +462,6 @@ namespace Shadowsocks.Controller
services.Add(_pacServer); services.Add(_pacServer);
services.Add(tcpRelay); services.Add(tcpRelay);
services.Add(udpRelay); services.Add(udpRelay);
//services.Add(new Http2Socks5(_config.localPort));
_listener = new Listener(services); _listener = new Listener(services);
_listener.Start(_config); _listener.Start(_config);
} }


Loading…
Cancel
Save