1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59:01 +00:00

Restrict proxying to TCP operations.

This commit is contained in:
henri
2013-04-22 19:34:18 +00:00
parent ab6a7a4f9e
commit 11fdeed8fb

View File

@@ -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);