diff options
author | Alex <b0ris@b0ris-satellite.localdomain> | 2011-11-03 21:44:37 +0200 |
---|---|---|
committer | Alex <b0ris@b0ris-satellite.localdomain> | 2011-11-03 21:44:37 +0200 |
commit | fb6fef711742bf92f4812ea70423f19443049df0 (patch) | |
tree | 8a5a4deadacf6a262304b83f05349867a21dd3f4 /client | |
parent | 718768b7bc4593acf7527db4865ca17beb4e7346 (diff) |
Fix request code bug
Diffstat (limited to 'client')
-rw-r--r-- | client/SslClient.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/client/SslClient.cpp b/client/SslClient.cpp index 5a309c4..fff44ea 100644 --- a/client/SslClient.cpp +++ b/client/SslClient.cpp @@ -71,16 +71,10 @@ void SslClient::SendRequest(RequestType type) switch (type) { case Config: - rcode = 0x01; - break; case GenericProxyList: - rcode = 0x02; - break; case StaticProxyList: - rcode = 0x03; - break; case FirewallList: - rcode = 0x04; + rcode = type; break; default: Logger::Error("Invalid server request type"); @@ -126,10 +120,10 @@ void SslClient::DataRecieved() char rcode = data[2]; switch (rcode) { - case 0x01: - case 0x02: - case 0x04: - case 0x08: + case Config: + case GenericProxyList: + case StaticProxyList: + case FirewallList: type = (RequestType)rcode; break; default: |