fix: creating handshakes folder if it doesn't exist on startup (fixes #227)
This commit is contained in:
parent
fac4b5c460
commit
d4d8c39205
@ -38,6 +38,9 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
|
||||
self._handshakes = {}
|
||||
self.last_session = LastSession(self._config)
|
||||
|
||||
if not os.path.exists(config['bettercap']['handshakes']):
|
||||
os.makedirs(config['bettercap']['handshakes'])
|
||||
|
||||
@staticmethod
|
||||
def is_connected():
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user