mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Use port 443 for production servers
This commit is contained in:
parent
eeb89e4161
commit
1736a8ea9b
2 changed files with 3 additions and 3 deletions
|
|
@ -32,8 +32,8 @@ class Connection:
|
|||
2: TCPIntermediate
|
||||
}
|
||||
|
||||
def __init__(self, ipv4: str, proxy: type, mode: int = 1):
|
||||
self.address = (ipv4, 80)
|
||||
def __init__(self, address: tuple, proxy: type, mode: int = 1):
|
||||
self.address = address
|
||||
self.proxy = proxy
|
||||
self.mode = self.MODES.get(mode, TCPAbridged)
|
||||
self.lock = threading.Lock()
|
||||
|
|
|
|||
|
|
@ -35,4 +35,4 @@ class DataCenter:
|
|||
}
|
||||
|
||||
def __new__(cls, dc_id: int, test_mode: bool):
|
||||
return cls.TEST[dc_id] if test_mode else cls.PROD[dc_id]
|
||||
return (cls.TEST[dc_id], 80) if test_mode else (cls.PROD[dc_id], 443)
|
||||
|
|
|
|||
Loading…
Reference in a new issue