Browse Source

Typo and refine code

tags/3.4.0
noisyfox 7 years ago
parent
commit
9cdb71875a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      shadowsocks-csharp/Controller/Service/HttpHandler.cs

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

@@ -66,7 +66,7 @@ namespace Shadowsocks.Controller.Service
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$");


private int _requestLineCount = 0; private int _requestLineCount = 0;
private volatile bool _isConnect = false;
private bool _isConnect = false;


private string _targetHost; private string _targetHost;
private int _targetPort; private int _targetPort;
@@ -156,7 +156,7 @@ namespace Shadowsocks.Controller.Service


if (_targetHost == null) if (_targetHost == null)
{ {
Logging.Error("Unkonwn host");
Logging.Error("Unknown host");
Close(); Close();
} }
else else


Loading…
Cancel
Save