mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-05-20 16:15:47 +08:00
导出格式优化
This commit is contained in:
@@ -222,7 +222,7 @@ class HttpChannelHandler extends ChannelHandler<HttpRequest> {
|
||||
/// 异常处理
|
||||
_exceptionHandler(Channel channel, HttpRequest? request, error) {
|
||||
HostAndPort? hostAndPort = channel.getAttribute(AttributeKeys.host);
|
||||
hostAndPort ??= HostAndPort.host(channel.remoteAddress.host, channel.remotePort);
|
||||
hostAndPort ??= HostAndPort.host(scheme:HostAndPort.httpScheme, channel.remoteAddress.host, channel.remotePort);
|
||||
String message = error.toString();
|
||||
HttpStatus status = HttpStatus(-1, message);
|
||||
if (error is HandshakeException) {
|
||||
|
||||
Reference in New Issue
Block a user