From 12e5ac04cfe763bf6c3e5c1f3318043aeaf6bc70 Mon Sep 17 00:00:00 2001 From: Sebastian Kinne Date: Wed, 27 Dec 2017 08:23:42 +1100 Subject: [PATCH] Update DWall to work with new libpcap --- DWall/api/module.php | 5 +++++ DWall/module.info | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DWall/api/module.php b/DWall/api/module.php index 25380b6..4403c41 100644 --- a/DWall/api/module.php +++ b/DWall/api/module.php @@ -20,6 +20,11 @@ class DWall extends Module private function enable() { $this->disable(); + + if (!file_exists("/usr/lib/libpcap.so.1.3") && file_exists("/usr/lib/libpcap.so")) { + symlink("/usr/lib/libpcap.so", "/usr/lib/libpcap.so.1.3"); + } + $this->execBackground("/usr/bin/python /pineapple/modules/DWall/assets/DWall.py"); $this->execBackground("/pineapple/modules/DWall/assets/http_sniffer br-lan"); $this->response = array("success" => true); diff --git a/DWall/module.info b/DWall/module.info index 4245b20..66c83d4 100644 --- a/DWall/module.info +++ b/DWall/module.info @@ -6,5 +6,5 @@ "tetra" ], "title": "DWall", - "version": "1.1" + "version": "1.2" } \ No newline at end of file