fixed error iptables with try create AP without internet

This commit is contained in:
mh4x0f 2020-04-27 09:12:47 -03:00
parent 9d737518a7
commit e662bcac3a
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- fixed list sub-plugins currently on command info [mh4x0f]
- fixed bug on dnserver try create AP without internet [mh4x0f]
- fixed error iptables with try create AP without internet [mh4x0f]
## [Released]

View File

@ -113,7 +113,9 @@ class Mode(Qt.QObject):
ech = ech.replace("$inet", self.interfacesLink["activated"][0])
if "$wlan" in ech:
ech = ech.replace("$wlan", self.ifaceHostapd)
popen(ech)
if not "$inet" in ech:
system(ech)
except Exception as e:
print(e)