send msg in authencation
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:
parent
8eea92a714
commit
284cfff0a0
@ -74,6 +74,7 @@ class NetWrapper:
|
|||||||
ct = b64encode(ciphertext).decode('UTF-8')
|
ct = b64encode(ciphertext).decode('UTF-8')
|
||||||
sendjson = json.dumps({'type': 'AUT', 'source': self.network.own_addr, 'nonce': nonce, 'message': ct}).encode(
|
sendjson = json.dumps({'type': 'AUT', 'source': self.network.own_addr, 'nonce': nonce, 'message': ct}).encode(
|
||||||
'UTF-8')
|
'UTF-8')
|
||||||
|
self.network.send_msg(self.serverAddr, sendjson)
|
||||||
b64 = {'source': '', 'type': ''}
|
b64 = {'source': '', 'type': ''}
|
||||||
while not (b64['source'] == self.serverAddr and b64['type'] == 'AUT'):
|
while not (b64['source'] == self.serverAddr and b64['type'] == 'AUT'):
|
||||||
status, msg = self.network.receive_msg(blocking=True)
|
status, msg = self.network.receive_msg(blocking=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user