1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

Lgndr: Undo bind_ip changes

Revert this commit once the new version of Legendary (`>0.20.33`) is released
This commit is contained in:
loathingKernel 2023-12-01 13:18:14 +02:00
parent 9aae822295
commit 7979563cb5
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
4 changed files with 4 additions and 11 deletions

View file

@ -201,8 +201,7 @@ class LegendaryCLI(LegendaryCLIReal):
disable_delta=args.disable_delta,
override_delta_manifest=args.override_delta_manifest,
preferred_cdn=args.preferred_cdn,
disable_https=args.disable_https,
bind_ip=args.bind_ip)
disable_https=args.disable_https)
# game is either up-to-date or hasn't changed, so we have nothing to do
if not analysis.dl_size and not game.is_dlc:

View file

@ -53,7 +53,7 @@ class LegendaryCore(LegendaryCoreReal):
repair: bool = False, repair_use_latest: bool = False,
disable_delta: bool = False, override_delta_manifest: str = '',
egl_guid: str = '', preferred_cdn: str = None,
disable_https: bool = False, bind_ip: str = None) -> (DLManager, AnalysisResult, ManifestMeta):
disable_https: bool = False) -> (DLManager, AnalysisResult, ManifestMeta):
dlm, analysis, igame = super(LegendaryCore, self).prepare_download(
game=game, base_game=base_game, base_path=base_path,
status_q=status_q, max_shm=max_shm, max_workers=max_workers,
@ -66,7 +66,7 @@ class LegendaryCore(LegendaryCoreReal):
repair=repair, repair_use_latest=repair_use_latest,
disable_delta=disable_delta, override_delta_manifest=override_delta_manifest,
egl_guid=egl_guid, preferred_cdn=preferred_cdn,
disable_https=disable_https, bind_ip=bind_ip,
disable_https=disable_https
)
# lk: monkeypatch run_real (the method that emits the stats) into DLManager
# pylint: disable=E1111

View file

@ -40,15 +40,10 @@ class DLManager(DLManagerReal):
self.writer_result_q = MPQueue(-1)
self.log.info(f'Starting download workers...')
bind_ip = None
for i in range(self.max_workers):
if self.bind_ips:
bind_ip = self.bind_ips[i % len(self.bind_ips)]
w = DLWorker(f'DLWorker {i + 1}', self.dl_worker_queue, self.dl_result_q,
self.shared_memory.name, logging_queue=self.logging_queue,
dl_timeout=self.dl_timeout, bind_addr=bind_ip)
dl_timeout=self.dl_timeout)
self.children.append(w)
w.start()

View file

@ -86,7 +86,6 @@ class LgndrInstallGameArgs:
reset_sdl: bool = False
skip_sdl: bool = False
disable_https: bool = False
bind_ip: str = ""
# FIXME: move to LgndrInstallGameRealArgs
skip_dlcs: bool = False
with_dlcs: bool = False