mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 08:40:36 +08:00
Only enforce havePcap if necessary. Fixes #564
This commit is contained in:
+1
-1
@@ -2225,7 +2225,7 @@ will open a UAC dialog where you can start the service if you have\n\
|
||||
administrator privileges.";
|
||||
#endif
|
||||
|
||||
if (this->havePcap()==false){
|
||||
if (this->isRoot() && this->havePcap()==false){
|
||||
#ifdef WIN32
|
||||
nping_fatal(QT_3, "Nping requires %s", privreq);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user