r set
The request_flags::intercepted,request_flags::spoof_client_ip are 1 bit integers
so when you are try to set to an integer bigger than 1 will overflow and the
results will not be what you are expecting.
* from the port settings to the request.
*/
if (http->clientConnection != NULL) {
- request->flags.intercepted = (http->clientConnection->flags & COMM_INTERCEPTION);
- request->flags.spoof_client_ip = (http->clientConnection->flags & COMM_TRANSPARENT);
+ request->flags.intercepted = ((http->clientConnection->flags & COMM_INTERCEPTION) != 0);
+ request->flags.spoof_client_ip = ((http->clientConnection->flags & COMM_TRANSPARENT) != 0 ) ;
}
if (internalCheck(request->urlpath.termedBuf())) {