mirror of
https://github.com/nmap/nmap.git
synced 2026-09-04 01:14:37 +00:00
Restrict proxying to TCP operations.
This commit is contained in:
parent
ab6a7a4f9e
commit
11fdeed8fb
1 changed files with 3 additions and 1 deletions
|
|
@ -161,7 +161,9 @@ void nsock_connect_internal(mspool *ms, msevent *nse, int type, int proto, struc
|
|||
#endif
|
||||
msiod *iod = nse->iod;
|
||||
|
||||
if (iod->px_ctx && (nse->handler != nsock_proxy_ev_dispatch)) {
|
||||
if (iod->px_ctx /* proxy enabled */
|
||||
&& proto == IPPROTO_TCP /* restrict proxying to TCP connections */
|
||||
&& (nse->handler != nsock_proxy_ev_dispatch)) { /* for reentrancy */
|
||||
struct proxy_node *current;
|
||||
|
||||
current = proxy_ctx_node_current(iod->px_ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue