mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-30 23:47:33 +03:00 
			
		
		
		
	Fix broken connection establishment in ConnectionTcpObfuscated
This regression was introduced in ebde3be820.
			
			
This commit is contained in:
		
							parent
							
								
									c39cc06908
								
							
						
					
					
						commit
						8c428e8566
					
				|  | @ -1,5 +1,6 @@ | ||||||
| import os | import os | ||||||
| 
 | 
 | ||||||
|  | from .connection import Connection | ||||||
| from .tcpabridged import ConnectionTcpAbridged | from .tcpabridged import ConnectionTcpAbridged | ||||||
| from ...crypto import AESModeCTR | from ...crypto import AESModeCTR | ||||||
| 
 | 
 | ||||||
|  | @ -22,7 +23,8 @@ class ConnectionTcpObfuscated(ConnectionTcpAbridged): | ||||||
|         return self._aes_decrypt.encrypt(await self._reader.readexactly(n)) |         return self._aes_decrypt.encrypt(await self._reader.readexactly(n)) | ||||||
| 
 | 
 | ||||||
|     async def connect(self, timeout=None, ssl=None): |     async def connect(self, timeout=None, ssl=None): | ||||||
|         await super().connect(timeout=timeout, ssl=ssl) |         # FIXME: that's an abstraction leak | ||||||
|  |         await Connection.connect(self, timeout=timeout, ssl=ssl) | ||||||
| 
 | 
 | ||||||
|         # Obfuscated messages secrets cannot start with any of these |         # Obfuscated messages secrets cannot start with any of these | ||||||
|         keywords = (b'PVrG', b'GET ', b'POST', b'\xee\xee\xee\xee') |         keywords = (b'PVrG', b'GET ', b'POST', b'\xee\xee\xee\xee') | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user