mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Allow NSE to connect via DTLS
This commit is contained in:
parent
929a29d310
commit
633bfe00b3
1 changed files with 5 additions and 2 deletions
|
|
@ -562,9 +562,12 @@ static int connect (lua_State *L, int status, lua_KContext ctx)
|
|||
dest->ai_addrlen, port);
|
||||
break;
|
||||
case SSL:
|
||||
nu->proto = IPPROTO_TCP;
|
||||
if (nu->proto != IPPROTO_UDP) {
|
||||
// Assume TCP unless we're explicitly connecting to a UDP port
|
||||
nu->proto = IPPROTO_TCP;
|
||||
}
|
||||
nsock_connect_ssl(nsp, nu->nsiod, callback, nu->timeout, nu,
|
||||
dest->ai_addr, dest->ai_addrlen, IPPROTO_TCP, port, nu->ssl_session);
|
||||
dest->ai_addr, dest->ai_addrlen, nu->proto, port, nu->ssl_session);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue