Fix TypeError when loading StringSession (#3714)

This commit is contained in:
Md Jisan 2022-02-10 18:41:05 +05:30 committed by GitHub
parent 8df66c0b47
commit fedbfedfd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ class StringSession(MemorySession):
takeout_id=0 takeout_id=0
) )
if ip_len == 4: if ip_len == 4:
ipv4 = int.from_bytes(ip, 'big', False) ipv4 = int.from_bytes(ip, 'big', signed=False)
ipv6 = None ipv6 = None
else: else:
ipv4 = None ipv4 = None