From 2fce1f2c701b5b9e28967a61e1f7d1040dab7f4d Mon Sep 17 00:00:00 2001 From: mh4x0f Date: Fri, 10 Apr 2020 17:18:31 -0300 Subject: [PATCH] fixed error hostpad_response when client left ap --- CHANGELOG.md | 1 + wifipumpkin3/core/wirelessmode/docker.py | 4 ++-- wifipumpkin3/core/wirelessmode/static.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da5e8ed..4ff25a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,7 @@ All notable changes to this project will be documented in this file. - Removed all files *.py compiler. [mh4x0f] ### Fixed +- fixed error hostpad_response when client left ap [mh4x0f] - fixed log hostapd send (state) with close the ap [mh4x0f] - fixed set linguist-vendored=false to exclude language statistics [mh4x0f] - fixed try to exclude files from git language statistics [mh4x0f] diff --git a/wifipumpkin3/core/wirelessmode/docker.py b/wifipumpkin3/core/wirelessmode/docker.py index 70109e6..cd657fb 100644 --- a/wifipumpkin3/core/wirelessmode/docker.py +++ b/wifipumpkin3/core/wirelessmode/docker.py @@ -11,7 +11,7 @@ from subprocess import check_output,Popen,PIPE,STDOUT,CalledProcessError,call from wifipumpkin3.core.controls.threads import ProcessHostapd, ProcessThread from wifipumpkin3.core.wirelessmode.wirelessmode import Mode from wifipumpkin3.core.common.uimodel import * -from wifipumpkin3.core.utility.printer import display_messages +from wifipumpkin3.core.utility.printer import display_messages,setcolor from wifipumpkin3.exceptions.errors.networkException import * # This file is part of the wifipumpkin3 Open Source Project. @@ -117,7 +117,7 @@ class Docker(Mode): popen('iptables-restore < {}'.format(C.DOCKERIPTABLESPATH)) def get_Hostapd_Response(self,data): - if self.conf.get('accesspoint','status_ap'): + if self.conf.get('accesspoint','status_ap', format=bool): print(display_messages('{} client has left AP ' .format(setcolor(data, color='red')), info=True)) diff --git a/wifipumpkin3/core/wirelessmode/static.py b/wifipumpkin3/core/wirelessmode/static.py index 80f3fe2..0b69ea9 100644 --- a/wifipumpkin3/core/wirelessmode/static.py +++ b/wifipumpkin3/core/wirelessmode/static.py @@ -68,7 +68,7 @@ class Static(Mode): self.reactor.statusAPError.connect(self.get_error_hostapdServices) def get_Hostapd_Response(self,data): - if self.conf.get('accesspoint','status_ap'): + if self.conf.get('accesspoint','status_ap', format=bool): print(display_messages('{} client has left AP ' .format(setcolor(data, color='red')), info=True))