mirror of
https://github.com/adulau/ssldump.git
synced 2024-12-22 16:05:58 +00:00
Continue even if no IP address is assigned on the interface
ssldump in a production environment can be used on a capture interface where no IP addresses are assigned. Print a warning instead of exiting.
This commit is contained in:
parent
388814dd45
commit
3d17d67ea0
1 changed files with 1 additions and 2 deletions
|
@ -366,8 +366,7 @@ int main(argc,argv)
|
|||
}
|
||||
|
||||
if (pcap_lookupnet(interface_name, &localnet, &netmask, errbuf) < 0)
|
||||
verr_exit("PCAP: %s\n",errbuf);
|
||||
|
||||
fprintf(stderr,"PCAP: %s\n", errbuf);
|
||||
}
|
||||
else{
|
||||
if(!(p=pcap_open_offline(file,errbuf))){
|
||||
|
|
Loading…
Reference in a new issue