Missing npcap message prompt
This commit is contained in:
+13
-1
@@ -10,13 +10,15 @@ from PySide2.QtWidgets import QMessageBox
|
||||
from .config import config
|
||||
from .main import MainWidget
|
||||
from .engine import initialize
|
||||
from .engine import InitializationResult
|
||||
from .styling import style
|
||||
from .version import current_version as get_current_version
|
||||
from .version import latest_version as get_latest_version
|
||||
from .version import latest_url
|
||||
|
||||
def run():
|
||||
initialize()
|
||||
initialization_result = initialize()
|
||||
|
||||
conf = config()
|
||||
window_config = conf['window']
|
||||
|
||||
@@ -53,4 +55,14 @@ def run():
|
||||
msg.setStandardButtons(QMessageBox.Ok)
|
||||
msg.show()
|
||||
|
||||
if initialization_result == InitializationResult.NetworkInterfaceListMissing:
|
||||
msg = QMessageBox()
|
||||
msg.setIcon(QMessageBox.Critical)
|
||||
msg.setWindowTitle("Unable to track network traffic data!")
|
||||
msg.setText("On windows make sure that WinPcap is installed in your system.")
|
||||
msg.setInformativeText("WinPcap can be installed from <a href='{}'>here</a> <br> <b>Make sure to install with the \"Install Npcap in WinPcap API-compatible Mode\"<b> option"
|
||||
.format('https://nmap.org/npcap/dist/npcap-0.9983.exe'))
|
||||
msg.setStandardButtons(QMessageBox.Ok)
|
||||
msg.show()
|
||||
|
||||
sys.exit(app.exec_())
|
||||
|
||||
Reference in New Issue
Block a user