mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-03 12:42:48 +03:00
added http-server loopback backdoor
This commit is contained in:
parent
1463954eb6
commit
381a537c9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user