mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
Fix IPv6 typo to IPv4 for StringSession.save() (#3760)
This commit is contained in:
parent
08bb72ea6b
commit
2357116f01
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue
Block a user