Merge branch 'master' of https://git.kmlabz.com/BiztProtoBois/client into master
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2021-04-26 00:22:58 +02:00
commit e37fbd929b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 4 additions and 8 deletions

View File

@ -101,15 +101,11 @@ while True:
if separatedCommand[0] == 'LIN' and len(separatedCommand) == 3:
network = NetWrapper(CLIENT_PRIVATE_KEY, CLIENT_ADDRESS, separatedCommand[1], SERVER_PUBLIC_KEY)
print('Start')
if not network.identifyServer():
print('Server identification failed!')
try:
network.connectToServer()
except Exception as e:
print("Error: "+str(e))
continue
print('Identified')
network.createEncryptedChannel()
print('Channel created')
network.authenticate(password=separatedCommand[2])
print('Authenticated')
LOGGED_IN = True
continue