mirror of
https://github.com/nmap/nmap.git
synced 2026-01-04 13:49:03 +00:00
enable --ttl support for connect() scans
This commit is contained in:
@@ -2458,6 +2458,7 @@ static UltraProbe *sendConnectScanProbe(UltraScanInfo *USI, HostScanStats *hss,
|
||||
if (CP->sd == -1) pfatal("Socket creation in %s", __func__);
|
||||
unblock_socket(CP->sd);
|
||||
init_socket(CP->sd);
|
||||
set_ttl(CP->sd, o.ttl);
|
||||
if (hss->target->TargetSockAddr(&sock, &socklen) != 0) {
|
||||
fatal("Failed to get target socket address in %s", __func__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user