Only enforce havePcap if necessary. Fixes #564

This commit is contained in:
dmiller
2026-05-14 19:35:29 +00:00
parent 2a697d1c35
commit ebdec1fa3e
+1 -1
View File
@@ -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