This commit is contained in:
yumoqing 2021-07-15 14:45:53 +08:00
parent 9c41413d55
commit b9921c8610

View File

@ -101,10 +101,12 @@ class UdpWidget(EventDispatcher):
def set_pubkey(self, data, addr):
pk = data['d']['pubkey']
id = addr[0]
print('set_pubkey(): ', id, pk)
self.dataencoder.set_peer_text_pubkey(id, pk)
def resp_pubkey(self, data, addr):
set_pubkey(data, addr)
print('resp_pubkey():', addr[0])
data = {
'c':'set_pubkey',
'd':{