mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-06-14 02:31:43 +03:00
Fall back to system libcrypto when cryptography is unavailable (#894)
This commit is contained in:
@@ -14,7 +14,7 @@ import socket as _socket
|
||||
from collections import deque
|
||||
from typing import Dict, List, Optional, Set, Tuple
|
||||
|
||||
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
||||
from ._aes import Cipher, algorithms, modes
|
||||
|
||||
if __name__ == '__main__' and (__package__ is None or __package__ == ''):
|
||||
_repo_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
Reference in New Issue
Block a user