This commit is contained in:
parent
a15d3e4dc7
commit
206b7ed2f3
@ -101,15 +101,11 @@ while True:
|
|||||||
|
|
||||||
if separatedCommand[0] == 'LIN' and len(separatedCommand) == 3:
|
if separatedCommand[0] == 'LIN' and len(separatedCommand) == 3:
|
||||||
network = NetWrapper(CLIENT_PRIVATE_KEY, CLIENT_ADDRESS, separatedCommand[1], SERVER_PUBLIC_KEY)
|
network = NetWrapper(CLIENT_PRIVATE_KEY, CLIENT_ADDRESS, separatedCommand[1], SERVER_PUBLIC_KEY)
|
||||||
print('Start')
|
try:
|
||||||
if not network.identifyServer():
|
network.connectToServer()
|
||||||
print('Server identification failed!')
|
except Exception as e:
|
||||||
|
print("Error: "+str(e))
|
||||||
continue
|
continue
|
||||||
print('Identified')
|
|
||||||
network.createEncryptedChannel()
|
|
||||||
print('Channel created')
|
|
||||||
network.authenticate(password=separatedCommand[2])
|
|
||||||
print('Authenticated')
|
|
||||||
LOGGED_IN = True
|
LOGGED_IN = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user