Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure proxy #183

Open
misaka10032w opened this issue Mar 7, 2023 · 1 comment
Open

configure proxy #183

misaka10032w opened this issue Mar 7, 2023 · 1 comment

Comments

@misaka10032w
Copy link

misaka10032w commented Mar 7, 2023

change src/main.py line447 to
proxy = 'your proxy' #such as 127.0.0.1:7890(clash default proxy) proxies = { 'http': 'http://'+proxy, 'https': 'http://'+proxy}

response = self.session.get(url=file['file_variables']['url'], stream=True, headers={**self.headers,'Range':f"bytes={resume_size}-"}, cookies=self.cookies, timeout=self.timeout,proxies=proxies)
This configures proxies for network-restricted regions,
I'm not very proficient in using python, so I can only do this. I don't know how to configure it as a global variable or add it to the execution parameters.

@Ovear
Copy link

Ovear commented Mar 30, 2023

Python will take HTTP/S_PROXY environment variable as its proxy, maybe use it instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants