yay icon indicating copy to clipboard operation
yay copied to clipboard

Automatic proxy

Open dmaliog opened this issue 1 year ago • 4 comments

Add the ability to set a proxy that will automatically detect that there is no access to a file and try to use a proxy to bypass this limitation

dmaliog avatar Jul 18 '24 23:07 dmaliog

If yay sees a timeout, let him try to let it through a proxy

dmaliog avatar Jul 21 '24 23:07 dmaliog

I would not feel comfortable embedding proxies not set by the user, what stops you from running yay behind a proxy all the time?

Jguer avatar Jul 26 '24 08:07 Jguer

I would not feel comfortable embedding proxies not set by the user, what stops you from running yay behind a proxy all the time?

If you work under it constantly, the speed will depend on the proxy, which can be much slower than the active connection. It is possible to simply check, for example, set http_proxy=0.0.0.0:0000 and check if these 2 conditions are met, then use a proxy during the timeout. If set is not found, then there is no need to use a proxy.

dmaliog avatar Aug 13 '24 14:08 dmaliog

I also need this setting. maybe make it in the file setting in the form key=value

host=type://proxy

freedom1b2830 avatar Sep 10 '24 10:09 freedom1b2830

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 01 '25 00:02 stale[bot]