Logging exception
This commit is contained in:
@@ -60,7 +60,8 @@ namespace Shadowsocks.Controller.Service
|
||||
|
||||
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$");
|
||||
|
||||
@@ -462,7 +462,6 @@ 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user