mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix loopback detection on Windows with new Npcap
This commit is contained in:
parent
24cbfa0e66
commit
cbe650092c
1 changed files with 2 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ _update_tables_for_npcap_loopback(IP_ADAPTER_ADDRESSES *p)
|
|||
* processes, but works for Nmap. */
|
||||
if (npcap_loopback_name[0] == '\0')
|
||||
g_has_npcap_loopback = intf_get_loopback_name(npcap_loopback_name, 1024);
|
||||
if (g_has_npcap_loopback == 0)
|
||||
else if (g_has_npcap_loopback == 0)
|
||||
return p;
|
||||
|
||||
if (!p)
|
||||
|
|
@ -287,6 +287,7 @@ _update_tables_for_npcap_loopback(IP_ADAPTER_ADDRESSES *p)
|
|||
* supposed to create this. */
|
||||
if (!a_original_loopback)
|
||||
return p;
|
||||
g_has_npcap_loopback = 1;
|
||||
/* If we didn't find the legacy adapter, use the modern adapter name. */
|
||||
if (!a_npcap_loopback) {
|
||||
/* Overwrite the name we got from the Registry, in case it's a broken legacy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue