refactor and better crypto
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user