Add direct connection feature and multithreading to events

Add direct connection feature and multithreading to events
This commit is contained in:
Arinerron 2018-05-03 03:22:07 +00:00 committed by GitHub
parent 1a02124122
commit c3d86eafa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 306 additions and 14 deletions

View file

@ -421,3 +421,6 @@ class OnionrUtils:
return False
except:
return False
def token(self, size = 32):
return binascii.hexlify(os.urandom(size))