mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Fix IPv6 typo to IPv4 for StringSession.save() (#3760)
This commit is contained in:
@@ -77,7 +77,7 @@ class StringSession(MemorySession):
|
||||
if self.dcs[self.state.dc_id].ipv6 is not None:
|
||||
ip = self.dcs[self.state.dc_id].ipv6.to_bytes(16, 'big', signed=False)
|
||||
else:
|
||||
ip = self.dcs[self.state.dc_id].ipv6.to_bytes(4, 'big', signed=False)
|
||||
ip = self.dcs[self.state.dc_id].ipv4.to_bytes(4, 'big', signed=False)
|
||||
|
||||
return CURRENT_VERSION + StringSession.encode(struct.pack(
|
||||
_STRUCT_PREFORMAT.format(len(ip)),
|
||||
|
Reference in New Issue
Block a user