added http-server loopback backdoor

This commit is contained in:
Isaac Visintainer 2019-04-12 13:03:02 -07:00 committed by Joe Bryan
parent 1463954eb6
commit 381a537c9f

View File

@ -383,11 +383,23 @@ _http_req_dispatch(u3_hreq* req_u, u3_noun req)
u3_noun pox = _http_req_to_duct(req_u);
u3_pier_plan(pox, u3nq(u3i_string("request"),
req_u->hon_u->htp_u->sec,
u3nc(c3__ipv4,
u3i_words(1, &req_u->hon_u->ipf_w)),
req));
if ( c3y == req_u->hon_u->htp_u->lop ) {
u3_pier_plan(pox, u3nq(u3i_string("request-local"),
// XX automatically secure too?
//
req_u->hon_u->htp_u->sec,
u3nc(c3__ipv4,
u3i_words(1, &req_u->hon_u->ipf_w)),
req));
}
else {
u3_pier_plan(pox, u3nq(u3i_string("request"),
req_u->hon_u->htp_u->sec,
u3nc(c3__ipv4,
u3i_words(1, &req_u->hon_u->ipf_w)),
req));
}
}
/* _http_hgen_dispose(): dispose response generator and buffers