fixed error hostpad_response when client left ap

This commit is contained in:
mh4x0f 2020-04-10 17:18:31 -03:00
parent e58b70f04d
commit 2fce1f2c70
3 changed files with 4 additions and 3 deletions

View File

@ -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]

View File

@ -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))

View File

@ -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))