Skip to content

Commit 1736a8e

Browse files
committed
Use port 443 for production servers
1 parent eeb89e4 commit 1736a8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyrogram/connection/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Connection:
3232
2: TCPIntermediate
3333
}
3434

35-
def __init__(self, ipv4: str, proxy: type, mode: int = 1):
36-
self.address = (ipv4, 80)
35+
def __init__(self, address: tuple, proxy: type, mode: int = 1):
36+
self.address = address
3737
self.proxy = proxy
3838
self.mode = self.MODES.get(mode, TCPAbridged)
3939
self.lock = threading.Lock()

pyrogram/session/internals/data_center.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ class DataCenter:
3535
}
3636

3737
def __new__(cls, dc_id: int, test_mode: bool):
38-
return cls.TEST[dc_id] if test_mode else cls.PROD[dc_id]
38+
return (cls.TEST[dc_id], 80) if test_mode else (cls.PROD[dc_id], 443)

0 commit comments

Comments
 (0)