mirror of
https://github.com/nmap/nmap.git
synced 2025-12-20 06:29:02 +00:00
Initial version with a _very_ raw support for HTTP proxy chains (using the
CONNECT method). This is mostly intended to validate the concepts, data models and programming approach.
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
/* nsock_iod is like a "file descriptor" for the nsock library. You use it to
|
||||
* request events. And here is how you create an nsock_iod. nsi_new returns
|
||||
@@ -137,6 +138,12 @@ nsock_iod nsi_new2(nsock_pool nsockp, int sd, void *userdata) {
|
||||
nsi->ssl_session = NULL;
|
||||
#endif
|
||||
|
||||
if (nsp->px_chain) {
|
||||
nsi->px_ctx = proxy_chain_context_new(nsp);
|
||||
} else {
|
||||
nsi->px_ctx = NULL;
|
||||
}
|
||||
|
||||
nsi->id = nsp->next_iod_serial++;
|
||||
if (nsi->id == 0)
|
||||
nsi->id = nsp->next_iod_serial++;
|
||||
|
||||
Reference in New Issue
Block a user