refactor and better crypto
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-04-26 19:32:10 +02:00
parent 78d597425d
commit 5b22b75e8d
3 changed files with 63 additions and 36 deletions

View File

@ -99,10 +99,10 @@ while True:
print("Invalid command format!")
continue
if separatedCommand[0] == 'LIN' and len(separatedCommand) == 2:
if separatedCommand[0] == 'LIN' and len(separatedCommand) == 3:
network = NetWrapper(CLIENT_PRIVATE_KEY, CLIENT_ADDRESS, separatedCommand[1], SERVER_PUBLIC_KEY)
try:
network.connectToServer()
network.connectToServer(separatedCommand[2])
except Exception as e:
print("Error: "+str(e))
continue