There was an error while loading. Please reload this page.
1 parent 973ccfc commit a0c1018Copy full SHA for a0c1018
1 file changed
pyrogram/session/internals/data_center.py
@@ -52,6 +52,14 @@ class DataCenter:
52
53
def __new__(cls, dc_id: int, test_mode: bool, ipv6: bool):
54
if ipv6:
55
- return (cls.TEST_IPV6[dc_id], 80) if test_mode else (cls.PROD_IPV6[dc_id], 443)
+ return (
56
+ (cls.TEST_IPV6[dc_id], 80)
57
+ if test_mode
58
+ else (cls.PROD_IPV6[dc_id], 443)
59
+ )
60
else:
- return (cls.TEST[dc_id], 80) if test_mode else (cls.PROD[dc_id], 443)
61
62
+ (cls.TEST[dc_id], 80)
63
64
+ else (cls.PROD[dc_id], 443)
65
0 commit comments